You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the repl finds that it cannot show the result of the expression, it just prints the type instead of the expression.
For example:
frege> []
[a]
If, OTOH it knows how the result can be printed, it actually evaluates the expression:
frege> :t head ([] :: [Int])
Int
frege> head ([] :: [Int])
frege.runtime.Undefined: head []
frege> head [ i | i <- [1..10], i > 50 ]
frege.runtime.Undefined: head []
frege>
I think this is better to see in the online repl, where there are colors.
head []
returns a
The text was updated successfully, but these errors were encountered: