[Haskell-cafe] Re: uu-parsinglib pKeyword

Ross Paterson ross at soi.city.ac.uk
Wed Oct 28 13:21:39 EDT 2009


On Wed, Oct 28, 2009 at 06:07:49PM +0100, S. Doaitse Swierstra wrote:
> pToken []     = pSucceed []
> pToken (x:xs) = (:) <$> pSym x <*> pToken xs
> 
> pKeyword_Float = pToken "Float"

pToken = traverse pSym


More information about the Haskell-Cafe mailing list