| Copyright | (c) 2013-2020 Brendan Hay <brendan.g.hay@gmail.com> |
|---|---|
| License | This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. A copy of the MPL can be found in the LICENSE file or you can obtain it at http://mozilla.org/MPL/2.0/. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | experimental |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Text.EDE.Internal.Parser
Description
Warning: this is an internal module, and does not have a stable API or name. Functions in this module may not check or enforce preconditions expected by public modules. Use at your own risk!
Documentation
type Parser m = (Monad m, MonadFail m, MonadState Env m, TokenParsing m, DeltaParsing m, LookAheadParsing m, Errable m) Source #
Instances
| Monad EDE Source # | |
| Functor EDE Source # | |
| MonadFail EDE Source # | |
Defined in Text.EDE.Internal.Parser | |
| Applicative EDE Source # | |
| Alternative EDE Source # | |
| MonadPlus EDE Source # | |
| TokenParsing EDE Source # | |
| LookAheadParsing EDE Source # | |
Defined in Text.EDE.Internal.Parser | |
| CharParsing EDE Source # | |
| Parsing EDE Source # | |
| DeltaParsing EDE Source # | |
Defined in Text.EDE.Internal.Parser Methods line :: EDE ByteString # slicedWith :: (a -> ByteString -> r) -> EDE a -> EDE r # restOfLine :: EDE ByteString # | |
| Errable EDE Source # | |
Defined in Text.EDE.Internal.Parser | |
| Errable (StateT Env EDE) Source # | |
runParser :: Syntax -> Text -> ByteString -> Result (Exp Delta, HashMap Text (NonEmpty Delta)) Source #
singleLine :: Parser m => m b -> m a -> m a Source #
number :: Parser m => m Scientific Source #
identifier :: (Monad m, TokenParsing m) => m Id Source #
spaces :: (Monad m, TokenParsing m) => m () Source #
manyTill1 :: Alternative m => m a -> m b -> m [a] Source #
manyEndBy1 :: Alternative m => m a -> m a -> m [a] Source #
chainl1' :: Alternative m => m a -> m b -> m (a -> b -> a) -> m a Source #