Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Builder-based parsing. This is useful for parsing Bash's complicated words.
- type Builder = Endo String
- fromChar :: Char -> Builder
- fromString :: String -> Builder
- toString :: Builder -> String
- (<+>) :: (Applicative f, Monoid a) => f a -> f a -> f a
- many :: (Alternative f, Monoid a) => f a -> f a
- many1 :: (Alternative f, Monoid a) => f a -> f a
- oneOf :: Stream s m Char => [Char] -> ParsecT s u m Builder
- noneOf :: Stream s m Char => [Char] -> ParsecT s u m Builder
- char :: Stream s m Char => Char -> ParsecT s u m Builder
- anyChar :: Stream s m Char => ParsecT s u m Builder
- satisfy :: Stream s m Char => (Char -> Bool) -> ParsecT s u m Builder
- string :: Stream s m Char => String -> ParsecT s u m Builder
- span :: Stream s m Char => Char -> Char -> ParsecT s u m Builder -> ParsecT s u m Builder
- matchedPair :: Stream s m Char => Char -> Char -> ParsecT s u m Builder -> ParsecT s u m Builder
Builders
Monoid parsing
(<+>) :: (Applicative f, Monoid a) => f a -> f a -> f a infixr 4 Source
Append two monoidal results.
many :: (Alternative f, Monoid a) => f a -> f a Source
Concat zero or more monoidal results.
many1 :: (Alternative f, Monoid a) => f a -> f a Source
Concat one or more monoidal results.