On Thu, 2006-09-21 at 10:15 +0200, Christian Maeder wrote: > Duncan Coutts schrieb: > > On Wed, 2006-09-20 at 18:14 +0200, Christian Maeder wrote: > >> How can I convince ghc version 6.5.20060919 to accept latin1 characters > >> in literals? > >> > >> I wish to keep source files (containing umlauts in strings) that can be > >> compiled by either ghc-6.4.2 and ghc-6.6. > > > > You can use numeric escapes like "\222". > > How about resolving http://cvs.haskell.org/trac/ghc/ticket/690 ? > > I would like to simple add a flag to ghc. How about adding an addional > phase (and extension) to ghc before preprocessing? > > Your solution does not support good readability. Is there a ready tool > that converts my source files as you suggested automatically? How does > haddock handle characters in comments?
There is iconv. It could be used as a pre-processor with ghc's -F -pgmF -optF flags. Sorry there isn't a better solution at the moment. You could petition for an {-# ENCODING ISO-8859-1 #-} pragma as mentioned in that ticket. Duncan _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users