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

Tim Chevalier catamorphism at gmail.com
Thu Feb 3 22:54:51 CET 2011


On Thu, Feb 3, 2011 at 12: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
>

Have you read the intermediate Core (using -ddump-simpl) for each variation?

Cheers,
Tim


-- 
Tim Chevalier * http://cs.pdx.edu/~tjc/ * Often in error, never in doubt
"an intelligent person fights for lost causes,realizing that others
are merely effects" -- E.E. Cummings



More information about the Haskell-Cafe mailing list