[Haskell-cafe] A 3 line program --> Reid, Don, Daniel

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Mon Oct 26 20:54:47 EDT 2009

On Oct 26, 2009, at 20:12 , Richard O'Keefe wrote:
> On Oct 25, 2009, at 5:01 PM, Curt Sampson wrote:
> The corresponding part of the GHC documentation says
> 	GHC assumes that source files are ASCII or UTF-8 only,
> 	other encodings are not recognised.  However,
> 	invalid UTF-8 sequences will be ignored in comments,
> 	so it is possible to use other encodings such as Latin-1,
> 	as long as the non-comment source code is ASCII only.
> There's no obvious reason why GHC couldn't support any source
> encoding that the host's iconv() supports.

That would be the Haskell98 Report:
Haskell uses the Unicode [11] character set. However, source programs  
are currently biased toward the ASCII character set used in earlier  
versions of Haskell .

This syntax depends on properties of the Unicode characters as defined  
by the Unicode consortium. Haskell compilers are expected to make use  
of new versions of Unicode as they are made available.

So yes, it's reasonable to "blame" the language (spec).

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20091026/f88625af/PGP.bin

More information about the Haskell-Cafe mailing list