Copyright | (c) 2013-2022 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 | Safe-Inferred |
Language | Haskell2010 |
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
MonadFail EDE Source # | |
Defined in Text.EDE.Internal.Parser | |
Alternative EDE Source # | |
Applicative EDE Source # | |
Functor EDE Source # | |
Monad EDE Source # | |
MonadPlus EDE Source # | |
CharParsing EDE Source # | |
Parsing EDE Source # | |
LookAheadParsing EDE Source # | |
Defined in Text.EDE.Internal.Parser | |
TokenParsing EDE Source # | |
DeltaParsing EDE Source # | |
Defined in Text.EDE.Internal.Parser 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), HashMap Text (NonEmpty Delta), HashMap Text (Exp 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 #