| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Haskell.TH.Natural.Syntax.Expr.Do.Untyped
Synopsis
- newDo :: forall (step :: BuilderStep). DoExprBuilder step 'Ready () -> DoExprDefinition
- newQualifiedDo :: forall (step :: BuilderStep). Name -> DoExprBuilder step 'Ready () -> DoExprDefinition
- type DoExprDefinition = Q DoE
- type DoExprBuilder = Builder DoExprBuilderState
- module Language.Haskell.TH.Natural.Syntax.Expr.Do.State
- stmt :: forall b (step :: BuilderStep). GenExpr b => b -> DoExprBuilder step 'Ready ()
- bind :: forall b (step :: BuilderStep). GenExpr b => b -> DoExprBuilder step 'Empty Exp
- strictBind :: forall b (step :: BuilderStep). GenExpr b => b -> DoExprBuilder step 'Empty Exp
- bind_ :: forall b (step :: BuilderStep). GenExpr b => Bool -> b -> DoExprBuilder step 'Empty Exp
- module Language.Haskell.TH.Natural.Syntax.Expr.Untyped
- module Language.Haskell.TH.Natural.Syntax.Builder.Monad
Types
newDo :: forall (step :: BuilderStep). DoExprBuilder step 'Ready () -> DoExprDefinition Source #
Builds a do-expression
newQualifiedDo :: forall (step :: BuilderStep). Name -> DoExprBuilder step 'Ready () -> DoExprDefinition Source #
Same as newDo, but allow qualifying the do-expression
type DoExprDefinition = Q DoE Source #
State
Functions
stmt :: forall b (step :: BuilderStep). GenExpr b => b -> DoExprBuilder step 'Ready () Source #
Add a statement to the do-expression
bind :: forall b (step :: BuilderStep). GenExpr b => b -> DoExprBuilder step 'Empty Exp Source #
Bind a value using the backward arrow
strictBind :: forall b (step :: BuilderStep). GenExpr b => b -> DoExprBuilder step 'Empty Exp Source #
Same as bind, but uses a bang pattern
bind_ :: forall b (step :: BuilderStep). GenExpr b => Bool -> b -> DoExprBuilder step 'Empty Exp Source #
Reexport
Orphan instances
| IsExprBuilder DoExprBuilderState Source # | |||||
Associated Types
Methods addDeconstruct :: forall (step :: BuilderStep). Deconstruct -> Builder DoExprBuilderState step 'Empty () Source # addLet :: forall (step :: BuilderStep). Binding -> Builder DoExprBuilderState step 'Empty () Source # letCount :: forall {k} (step :: k). Builder DoExprBuilderState step step Int Source # returns :: forall b (step :: BuilderStep). GenExpr b => b -> Builder DoExprBuilderState step 'Ready () Source # runExprBuilder :: forall (step :: BuilderStep). Builder DoExprBuilderState step 'Ready () -> Definition DoExprBuilderState Source # | |||||