Difference between revisions of "User:Benmachine/Cont"
Jump to navigation
Jump to search
Benmachine (talk | contribs) (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...) |
Benmachine (talk | contribs) |
||
Line 1: | Line 1: | ||
+ | When you do this: <hask>{-</hask>, terrible things happen. |
||
− | This seemed to break things: <hask>{-# LANGUAGE NoOverlappingInstances -#</hask>}. If I then go, um, <hask>foo</hask>, and then this: |
||
+ | |||
⚫ | |||
+ | Here's some nicely-formatted code: |
||
− | main = do |
||
− | 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> |
||
+ | which is now ruined. <hask>-}</hask> does that fix it? It doesn't seem to. |
||
− | I suppose it isn't. How curious. |
||
+ | |||
+ | == The problem == |
||
+ | |||
+ | doesn't even stop at section boundaries: |
||
⚫ | |||
+ | 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: <haskell> error :: String -> a error str = error (error str)