Personal tools

User:Benmachine/Cont

From HaskellWiki

< User:Benmachine(Difference between revisions)
Jump to: navigation, search
(New page: This seemed to break things: <hask>{-# LANGUAGE NoOverlappingInstances -#</hask>}. If I then go, um, <hask>foo</hask>, and then this: <haskell> main = do putStrLn "I broke it :(" </haske...)
 

Revision as of 18:54, 9 June 2011

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)