[Haskell-cafe] Unicode and Haskell
Thomas Davie
tom.davie at gmail.com
Tue Sep 9 18:07:56 EDT 2008
On 10 Sep 2008, at 00:01, Mattias Bengtsson wrote:
> Today i wrote some sample code after a Logic lecture at my university.
> The idea is to represent the AST of propositional logic as an ADT with
> some convenience functions (like read-/show instances) and then later
> perhaps try to make some automatic transformations on the AST.
> After construction of the Show instances i found the output a bit
> boring
> and thought that some Unicode math symbols would spice things up. What
> happens can be seen in the attached picture (only 3k, that's ok
> right?).
> My terminal supports UTF-8 (when i do cat Logic.hs i can see the
> unicode
> symbols properly).
> What might be the problem?
import Prelude hiding (print)
import System.IO.UTF8
main = print "lots of UTF8"
Bob
More information about the Haskell-Cafe
mailing list