Haskell Platform decision: time to bless parsec 3?

Stephen Tetley stephen.tetley at gmail.com
Sat Nov 6 13:56:33 EDT 2010


Apologies for my last message which was rather garbled due to
squinting at tiny text.

For infomation, here's a list of most of the combinators with the
Applicative / Alternative / Monad signatures, I've defined libraries
of them myself a couple of times.

choice :: Alternative f => [f a] -> f a

count :: Applicative f => Int -> f a -> f [a]

between :: Applicative f => f open -> f close -> f a -> f a

option :: Alternative f => a -> f a -> f a

optionMaybe :: Alternative f => f a -> f (Maybe a)

optional :: Alternative f => f a -> f ()

skipMany :: Alternative f => f a -> f ()

skipMany1 :: Alternative f => f a -> f ()

-- | 'many1' an alias for Control.Applicative 'some'.
many1 :: Alternative f => f a -> f [a]

sepBy :: Alternative f => f a -> f b -> f [a]

sepBy1 :: Alternative f => f a -> f b -> f [a]

sepEndBy :: Alternative f => f a -> f b -> f [a]

sepEndBy1 :: Alternative f => f a -> f b -> f [a]

manyTill :: Alternative f => f a -> f b -> f [a]

manyTill1 :: Alternative f => f a -> f b -> f [a]

chainl1 :: MonadPlus m => m a -> m (a -> a -> a) -> m a

chainr1 :: MonadPlus m => m a -> m (a -> a -> a) -> m a

chainl :: MonadPlus m => m a -> m (a -> a -> a) -> a -> m a

chainr :: MonadPlus m => m a -> m (a -> a -> a) -> a -> m a


More information about the Libraries mailing list