Christopher Done | 26 Jul 19:42 2012
Picon

GHC type error pretty printing

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" ::
              ()

Gmane