Haskell source encoding

后端 未结 4 1731
逝去的感伤
逝去的感伤 2021-02-15 19:09

The Haskell 2010 Language Report says:

Haskell uses the Unicode [2] character set. However, source programs are currently biased toward the ASCII character set
4条回答
  •  长发绾君心
    2021-02-15 19:55

    There was a proposal to standardize on UTF-8 as the standard encoding of Haskell source files, but I'm not sure if it was accepted or not.

    In practice, GHC assumes all input files are UTF-8, but it ignores malformed byte sequences in comments.

提交回复
热议问题