[Haskell-cafe] ($) not as transparent as it seems

Daniel Peebles pumpkingod at gmail.com
Thu Feb 3 22:34:49 CET 2011


This is indeed very strange. On my latest GHC 7 (built a couple of days ago)
it does the right thing when compiled, but in GHCi it behaves as you
describe. I have no idea, frankly.

On Thu, Feb 3, 2011 at 8:44 PM, Steffen Schuldenzucker <
sschuldenzucker at uni-bonn.de> wrote:

>
> Dear cafe,
>
> does anyone have an explanation for this?:
>
> >>> error (error "foo")
> *** Exception: foo
>
> >>> error $ error "foo"
> *** Exception: *** Exception: foo
>
> -- Steffen
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110203/3d760433/attachment.htm>


More information about the Haskell-Cafe mailing list