:t seems to just echo the expression given it instead of (also) giving the type.
For example,
:t 1 + 1
results in:
1 + 1
but it should result in:
1 + 1 :: Num a => a
Version of Haskell for Mac is 1.5.0
:t seems to just echo the expression given it instead of (also) giving the type.
For example,
:t 1 + 1
results in:
1 + 1
but it should result in:
1 + 1 :: Num a => a
Version of Haskell for Mac is 1.5.0
Thank you for this bug report. This is a regression in 1.5.0.
In the meantime, you can select the expression and press CMD-I to get its type.
I am sorry for the inconvenience. This will be fixed in the upcoming bug fix release.
I have been looking into this more closely and have trouble reproducing it now. Here is what I get
Interesting.
I am able reproduce that as well until and unless you type a line feed after the expression.
It seems that if there is a line feed anywhere on the line after the :t expression, then it will only echo the expression and not show the type.
Thank you for the clarification. I can in fact reproduce that. (That's why my unit test didn't catch it.) Thanks!
BTW, this is only a formatting problem. The correct type is actually in the output, you just can't see it as it is outside the clipped area due to the newline character. You can see that if you right click the `1 + 1` in the result area (to get a popup menu) and select "Show Type".
I hope that can serve as a work around until I put out a bug fix release.