[Haskell-cafe] Unicode and Haskell
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
> 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
> My terminal supports UTF-8 (when i do cat Logic.hs i can see the
> symbols properly).
> What might be the problem?
import Prelude hiding (print)
main = print "lots of UTF8"
More information about the Haskell-Cafe