Text.ParserCombinators.ReadP.(+++) :: ReadP a -> ReadP a -> ReadP a
Wow, fast and complete, Thanks Don! :)
Would it make sense to derive instances of Applicable and Alternative
for ReadP? Something like this maybe:
instance Applicative ReadP where
pure = return
(<*>) = ap
instance Alternative ReadP where
empty = pfail
(<|>) = (<++)
Thanks,
Greg
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe
