ede-0.3.4.0: Templating language with similar syntax and features to Liquid or Jinja2.
Copyright(c) 2013-2022 Brendan Hay <brendan.g.hay@gmail.com>
LicenseThis 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/.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityexperimental
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

newtype EDE a Source #

Constructors

EDE 

Fields

Instances

Instances details
MonadFail EDE Source # 
Instance details

Defined in Text.EDE.Internal.Parser

Methods

fail :: String -> EDE a #

Alternative EDE Source # 
Instance details

Defined in Text.EDE.Internal.Parser

Methods

empty :: EDE a #

(<|>) :: EDE a -> EDE a -> EDE a #

some :: EDE a -> EDE [a] #

many :: EDE a -> EDE [a] #

Applicative EDE Source # 
Instance details

Defined in Text.EDE.Internal.Parser

Methods

pure :: a -> EDE a #

(<*>) :: EDE (a -> b) -> EDE a -> EDE b #

liftA2 :: (a -> b -> c) -> EDE a -> EDE b -> EDE c #

(*>) :: EDE a -> EDE b -> EDE b #

(<*) :: EDE a -> EDE b -> EDE a #

Functor EDE Source # 
Instance details

Defined in Text.EDE.Internal.Parser

Methods

fmap :: (a -> b) -> EDE a -> EDE b #

(<$) :: a -> EDE b -> EDE a #

Monad EDE Source # 
Instance details

Defined in Text.EDE.Internal.Parser

Methods

(>>=) :: EDE a -> (a -> EDE b) -> EDE b #

(>>) :: EDE a -> EDE b -> EDE b #

return :: a -> EDE a #

MonadPlus EDE Source # 
Instance details

Defined in Text.EDE.Internal.Parser

Methods

mzero :: EDE a #

mplus :: EDE a -> EDE a -> EDE a #

CharParsing EDE Source # 
Instance details

Defined in Text.EDE.Internal.Parser

Parsing EDE Source # 
Instance details

Defined in Text.EDE.Internal.Parser

Methods

try :: EDE a -> EDE a #

(<?>) :: EDE a -> String -> EDE a #

skipMany :: EDE a -> EDE () #

skipSome :: EDE a -> EDE () #

unexpected :: String -> EDE a #

eof :: EDE () #

notFollowedBy :: Show a => EDE a -> EDE () #

LookAheadParsing EDE Source # 
Instance details

Defined in Text.EDE.Internal.Parser

Methods

lookAhead :: EDE a -> EDE a #

TokenParsing EDE Source # 
Instance details

Defined in Text.EDE.Internal.Parser

Methods

someSpace :: EDE () #

nesting :: EDE a -> EDE a #

semi :: EDE Char #

highlight :: Highlight -> EDE a -> EDE a #

token :: EDE a -> EDE a #

DeltaParsing EDE Source # 
Instance details

Defined in Text.EDE.Internal.Parser

Errable EDE Source # 
Instance details

Defined in Text.EDE.Internal.Parser

Methods

raiseErr :: Err -> EDE a #

Errable (StateT Env EDE) Source # 
Instance details

Defined in Text.EDE.Internal.Parser

Methods

raiseErr :: Err -> StateT Env EDE a #

pragma :: Parser m => m () Source #

block :: Parser m => String -> m a -> m a Source #

multiLine :: Parser m => m b -> m a -> m a Source #

singleLine :: Parser m => m b -> m a -> m a Source #

loop :: Parser m => m (Exp Delta) Source #

set :: Parser m => m (Exp Delta) Source #

raw :: Parser m => m (Exp Delta) Source #

exit :: Parser m => String -> m () Source #

term :: Parser m => m (Exp Delta) Source #

filter' :: Parser m => m (Id, [Exp Delta]) Source #

bool :: Parser m => m Bool Source #

array :: Parser m => m (Vector Value) 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 #

ann :: (DeltaParsing m, Functor f) => m (f (Fix f)) -> m (Cofree f Delta) Source #

pack :: Functor f => f String -> f Value Source #

triml :: Parser m => m a -> m a Source #

trimr :: Parser m => m a -> m a Source #

pragmak :: Parser m => String -> m () Source #