Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Dickinson a = Dickinson {
- modImports :: [Import a]
- modDefs :: [Declaration a]
- data Declaration a
- data Import a = Import {}
- data Expression a
- = Literal { }
- | StrChunk { }
- | Choice {
- exprAnn :: a
- choices :: NonEmpty (Double, Expression a)
- | Let {
- exprAnn :: a
- letBinds :: NonEmpty (Name a, Expression a)
- letExpr :: Expression a
- | Bind {
- exprAnn :: a
- letBinds :: NonEmpty (Name a, Expression a)
- letExpr :: Expression a
- | Var { }
- | Interp {
- exprAnn :: a
- exprInterp :: [Expression a]
- | MultiInterp {
- exprAnn :: a
- exprMultiInterp :: [Expression a]
- | Lambda {
- exprAnn :: a
- lambdaVar :: Name a
- lambdaTy :: DickinsonTy a
- lambdaExpr :: Expression a
- | Apply {
- exprAnn :: a
- exprFun :: Expression a
- exprArg :: Expression a
- | Concat {
- exprAnn :: a
- exprConcats :: [Expression a]
- | Tuple {
- exprAnn :: a
- exprTup :: NonEmpty (Expression a)
- | Match {
- exprAnn :: a
- exprMatch :: Expression a
- exprBranch :: NonEmpty (Pattern a, Expression a)
- | Flatten {
- exprAnn :: a
- exprFlat :: Expression a
- | Annot {
- exprAnn :: a
- expr :: Expression a
- exprTy :: DickinsonTy a
- | Constructor {
- exprAnn :: a
- constructorName :: TyName a
- | BuiltinFn {
- exprAnn :: a
- exprBuiltin :: Builtin
- | Random { }
- data Pattern a
- data DickinsonTy a
- = TyText a
- | TyFun a (DickinsonTy a) (DickinsonTy a)
- | TyTuple a (NonEmpty (DickinsonTy a))
- | TyNamed a (Name a)
- defExprM :: Declaration a -> Maybe (Expression a)
Documentation
Dickinson | |
|
Instances
Functor Dickinson Source # | |
Generic (Dickinson a) Source # | |
Show a => Show (Dickinson a) Source # | |
Binary a => Binary (Dickinson a) Source # | |
NFData a => NFData (Dickinson a) Source # | |
Defined in Language.Dickinson.Type | |
Pretty (Dickinson a) Source # | |
Defined in Language.Dickinson.Type | |
type Rep (Dickinson a) Source # | |
Defined in Language.Dickinson.Type type Rep (Dickinson a) = D1 ('MetaData "Dickinson" "Language.Dickinson.Type" "language-dickinson-1.4.3.0-u4JKvBug5L7Xak6MfKGcR-dickinson" 'False) (C1 ('MetaCons "Dickinson" 'PrefixI 'True) (S1 ('MetaSel ('Just "modImports") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Import a]) :*: S1 ('MetaSel ('Just "modDefs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Declaration a]))) |
data Declaration a Source #
Instances
Instances
Functor Import Source # | |
Generic (Import a) Source # | |
Show a => Show (Import a) Source # | |
Binary a => Binary (Import a) Source # | |
NFData a => NFData (Import a) Source # | |
Defined in Language.Dickinson.Type | |
Pretty (Import a) Source # | |
Defined in Language.Dickinson.Type | |
type Rep (Import a) Source # | |
Defined in Language.Dickinson.Type type Rep (Import a) = D1 ('MetaData "Import" "Language.Dickinson.Type" "language-dickinson-1.4.3.0-u4JKvBug5L7Xak6MfKGcR-dickinson" 'False) (C1 ('MetaCons "Import" 'PrefixI 'True) (S1 ('MetaSel ('Just "importAnn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Just "declMod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Name a)))) |
data Expression a Source #
Literal | |
StrChunk | |
Choice | |
| |
Let | |
| |
Bind | |
| |
Var | |
Interp | |
| |
MultiInterp | |
| |
Lambda | |
| |
Apply | |
| |
Concat | |
| |
Tuple | |
| |
Match | |
| |
Flatten | |
| |
Annot | |
| |
Constructor | |
| |
BuiltinFn | |
| |
Random | |
Instances
Instances
data DickinsonTy a Source #
TyText a | |
TyFun a (DickinsonTy a) (DickinsonTy a) | |
TyTuple a (NonEmpty (DickinsonTy a)) | |
TyNamed a (Name a) |
Instances
Accesors
defExprM :: Declaration a -> Maybe (Expression a) Source #