Personal tools

User:Benmachine/Cont

From HaskellWiki

(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...)
Line 1: Line 1:
-
This seemed to break things: <hask>{-# LANGUAGE NoOverlappingInstances -#</hask>}. If I then go, um, <hask>foo</hask>, and then this:
+
When you do this: <hask>{-</hask>, terrible things happen.
-
<haskell>
+
 
-
main = do
+
Here's some nicely-formatted code:
-
putStrLn "I broke it :("
+
-
</haskell>
+
-
then all sorts of oddities arise.
+
-
Here is a new paragraph, is it fixed yet?
 
<haskell>
<haskell>
id :: a -> a
id :: a -> a
-
id x = x
+
id x = const x x
const :: a -> b -> a
const :: a -> b -> a
-
const x _ = x
+
const x _ = id x
</haskell>
</haskell>
-
I suppose it isn't. How curious.
+
which is now ruined. <hask>-}</hask> does that fix it? It doesn't seem to.
 +
 
 +
== The problem ==
 +
 
 +
doesn't even stop at section boundaries:
 +
<haskell>
 +
error :: String -> a
 +
error str = error (error str)

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)