
22 Sep
2005
22 Sep
'05
2:42 a.m.
Hi, I've been using the pretty printer in Text.PrettyPrint.HughesPJ lately, and I've encountered a behaviour that was very unexpected for me. If I define this small example: test = text "foo" <+> empty <> text "bar" Running 'show test' now gives the string "foobar" as a result (whereas I expected "foo bar").It seems the empty "eats" the space that I expect <+> to give me. So is this how the library is supposed to work or have I encountered a bug? Regards, Anders
7180
Age (days ago)
7180
Last active (days ago)
0 comments
1 participants
participants (1)
-
Anders Höckersten