Safe Haskell | None |
---|---|
Language | Haskell98 |
- papillon :: QuasiQuoter
- class Source sl where
- class SourceList c where
- data ListPos c
- listToken :: [c] -> Maybe (c, [c])
- listInitialPos :: ListPos c
- listUpdatePos :: c -> ListPos c -> ListPos c
- data ParseError pos drv
- mkParseError :: forall pos drv. String -> String -> String -> drv -> [String] -> pos -> ParseError pos drv
- peDerivs :: ParseError pos drv -> drv
- peReading :: ParseError pos drv -> [String]
- peMessage :: ParseError pos drv -> String
- peCode :: ParseError pos drv -> String
- peComment :: ParseError pos drv -> String
- pePosition :: ParseError pos drv -> pos
- pePositionS :: forall drv. ParseError (Pos String) drv -> (Int, Int)
- (<*>) :: Applicative f => forall a b. f (a -> b) -> f a -> f b
- (<$>) :: Functor f => (a -> b) -> f a -> f b
- runError :: forall err a. ErrorT err Identity a -> Either err a
Documentation
class Source sl where
Source ByteString | |
SourceList c => Source [c] |
class SourceList c where
data ListPos c
listToken :: [c] -> Maybe (c, [c])
listInitialPos :: ListPos c
listUpdatePos :: c -> ListPos c -> ListPos c
For parse error message
data ParseError pos drv
Error (ParseError pos drv) |
mkParseError :: forall pos drv. String -> String -> String -> drv -> [String] -> pos -> ParseError pos drv
peDerivs :: ParseError pos drv -> drv
peReading :: ParseError pos drv -> [String]
peMessage :: ParseError pos drv -> String
peCode :: ParseError pos drv -> String
peComment :: ParseError pos drv -> String
pePosition :: ParseError pos drv -> pos
pePositionS :: forall drv. ParseError (Pos String) drv -> (Int, Int)
(<*>) :: Applicative f => forall a b. f (a -> b) -> f a -> f b
Sequential application.