Personal tools

User:Benmachine/Cont

From HaskellWiki

Jump to: navigation, search
When you do this:
{-
, terrible things happen.

Here's some nicely-formatted code:

id :: a -> a
id x = const x x
 
const :: a -> b -> a
const x _ = id x
which is now ruined.
-}
does that fix it? It doesn't seem to.

The problem

doesn't even stop at section boundaries:

error :: String -> a
error str = error (error str)