26 Jul 2012 19:42
GHC type error pretty printing
Christopher Done <chrisdone <at> gmail.com>
2012-07-26 17:42:40 GMT
2012-07-26 17:42:40 GMT
Is it me or is this output not right? The \ syntax doesn't indicate a newline. chris <at> midnight:~$ ghci GHCi, version 7.4.2: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Prelude> "abc\n123" :: () <interactive>:2:1: Couldn't match expected type `()' with actual type `[Char]' In the expression: "abc\ \123" :: () In an equation for `it': it = "abc\ \123" :: ()
RSS Feed