Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class Chunk inp => Inputable inp where
- between :: Applicative f => f a -> f b -> f c -> f c
- match :: (Monad m, Eq a) => [a] -> m a -> (a -> m b) -> m b -> m b
- skipSome :: Alternative p => p a -> p ()
- some :: Alternative p => p a -> p [a]
- maybeP :: Alternative p => p a -> p (Maybe a)
- fromMaybeP :: Monad m => m (Maybe a) -> m a -> m a
- (<+>) :: Alternative p => p a -> p b -> p (Either a b)
- (<:>) :: Applicative p => p a -> p [a] -> p [a]
- (<~>) :: Applicative p => p a -> p b -> p (a, b)
- pfoldl1 :: Alternative p => (b -> a -> b) -> b -> p a -> p b
- (>?>) :: MonadPlus m => m a -> (a -> Bool) -> m a
- chainPre :: Alternative p => p (a -> a) -> p a -> p a
- chainPost :: Alternative p => p a -> p (a -> a) -> p a
- chainl1 :: Alternative p => p a -> p (a -> a -> a) -> p a
- chainr1 :: Alternative p => p a -> p (a -> a -> a) -> p a
- data Level p s a
- precedence :: Alternative p => [Level p s a] -> p a -> p a
Class Inputable
class Chunk inp => Inputable inp where Source #
uncons :: inp -> Maybe (Token inp, inp) Source #
satisfy :: (Token inp -> Bool) -> Parser inp (Token inp) Source #
Instances
Inputable ByteString Source # | |
Defined in Parsers.Utils.Attoparsec type Token ByteString Source # null :: ByteString -> Bool Source # empty :: ByteString Source # uncons :: ByteString -> Maybe (Token ByteString, ByteString) Source # satisfy :: (Token ByteString -> Bool) -> Parser ByteString (Token ByteString) Source # char :: Char -> Parser ByteString Char Source # notInClass :: String -> Token ByteString -> Bool Source # | |
Inputable Text Source # | |
Defined in Parsers.Utils.Attoparsec |
between :: Applicative f => f a -> f b -> f c -> f c Source #
skipSome :: Alternative p => p a -> p () Source #
some :: Alternative p => p a -> p [a] Source #
maybeP :: Alternative p => p a -> p (Maybe a) Source #
fromMaybeP :: Monad m => m (Maybe a) -> m a -> m a Source #
(<+>) :: Alternative p => p a -> p b -> p (Either a b) Source #
(<:>) :: Applicative p => p a -> p [a] -> p [a] Source #
(<~>) :: Applicative p => p a -> p b -> p (a, b) Source #
pfoldl1 :: Alternative p => (b -> a -> b) -> b -> p a -> p b Source #
chainPre :: Alternative p => p (a -> a) -> p a -> p a Source #
chainPost :: Alternative p => p a -> p (a -> a) -> p a Source #
chainl1 :: Alternative p => p a -> p (a -> a -> a) -> p a Source #
chainr1 :: Alternative p => p a -> p (a -> a -> a) -> p a Source #
precedence :: Alternative p => [Level p s a] -> p a -> p a Source #