Skip to content

GHC infelicity list has not been updated since the switch to UTF-8 sources

According to

http://www.haskell.org/ghc/docs/latest/html/users_guide/bugs-and-infelicities.html#vs-Haskell-defn

GHC only accepts ISO-8859-1, but, when I try to compile this source file in ISO-8859-1:

module Main where
main :: IO ()
main = do putStrLn "ano"

I obtain:

main.hs:3:21:
    lexical error in string/character literal (UTF-8 decoding error)

And, if I save the source as UTF-8 it does compile, but, when running the program, it prints "a".

Regards,

Antonio Regidor Garcia

Edited by Stefan O'Rear -
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information