PATCH: implementation for TH PprLib.hs punctuate function
Duncan Coutts
duncan.coutts at worcester.oxford.ac.uk
Tue Mar 2 14:02:18 EST 2004
Hi,
I noticed that the 6.3 version of the PprLib.hs is not fully implemented
so pretty printing some things calls Prelude.undefined.
With the other monadic version of the HughesPJ combinators you can just
wrap them using liftM or similar but that doesn't work out so well for
punctuate as the type won't be right. So I've basically unfolded the
definition of punctuate and then added in the monadic bits.
Attached patch typechecks but I've not rebuilt yet so I've not tested it
(but it looks right :-) ).
Duncan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PprLib.hs.patch
Type: text/x-patch
Size: 956 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20040302/d88c5d88/PprLib.hs.bin
More information about the Glasgow-haskell-bugs
mailing list