Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data NestError
- renderNestError :: NestError -> Text
- newtype Environment = Environment {}
- newtype Parser m a = Parser {
- parse :: Environment -> EitherT NestError m a
- variable :: Monad m => ByteString -> Parser m ByteString
- string :: (Monad m, IsString s) => ByteString -> Parser m s
- numeric :: (Monad m, Read n, Num n) => ByteString -> Parser m n
- flag :: Monad m => ByteString -> a -> a -> Parser m a
- setting :: Monad m => ByteString -> Map Text a -> Parser m a
- failure :: Monad m => ByteString -> Text -> Parser m a
- option :: Monad m => Parser m a -> Parser m (Maybe a)
- withDefault :: Monad m => Parser m a -> a -> Parser m a
- withContext :: Monad m => Parser m a -> Text -> Parser m a
- run :: MonadIO m => Parser m a -> m (Either NestError a)
- runT :: MonadIO m => Parser m a -> EitherT NestError m a
- runWith :: MonadIO m => Environment -> Parser m a -> m (Either NestError a)
- runWithT :: MonadIO m => Environment -> Parser m a -> EitherT NestError m a
- force :: MonadIO m => Parser m a -> m a
Errors
renderNestError :: NestError -> Text Source #
Types
newtype Environment Source #
Parser | |
|
Basic parsers
variable :: Monad m => ByteString -> Parser m ByteString Source #