| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Language.JS.Types
Synopsis
- data ObjectProperty
- type IsPrefix = Bool
- data SwitchCase
- type ExpressionOpt = Maybe Expression
- type StatementOpt = Maybe Statement
- data ForStyle
- data ImportClause
- data BindExpression
- data TemplateString
- data Expression
- = LThis
- | LNull
- | LI String
- | LN String
- | LS String
- | LTS [TemplateString]
- | LB Bool
- | RegExp String String
- | UnaryUpdate String IsPrefix Expression
- | Unary String Expression
- | Spread Expression
- | Elision
- | LA [Expression]
- | LO [ObjectProperty]
- | LP Expression
- | Condition Expression Expression Expression
- | Assignment String Expression Expression
- | Operation String Expression Expression
- | Function ExpressionOpt [BindExpression] Statement
- | Arrow (Either BindExpression [BindExpression]) Statement
- | Class ExpressionOpt ExpressionOpt Statement
- | ClassProperty Expression Expression
- | PropertyMethod Expression [BindExpression] Statement
- | ClassStatic Expression
- | ClassGetMethod Expression
- | ClassSetMethod Expression
- | Async Expression
- | Dot Expression Expression
- | Acc Expression Expression
- | FCall Expression [Expression]
- | New Expression
- | Comma Expression Expression
- | Empty
- | Comment String
- | MultilineComment String
- data Statement
- = SExp Expression
- | SImportFile Expression
- | SImport (Either ImportClause [ImportClause]) Expression
- | SRExport Expression Expression
- | SExport Statement
- | SExportDefault Expression
- | SC String ExpressionOpt Statement
- | SF String [BindExpression] Statement
- | SVariable String [BindExpression]
- | SWhile [Expression] Statement
- | SDoWhile Statement [Expression]
- | SFor ForStyle Statement
- | SLabel Expression Statement
- | SDebugger
- | SContinue ExpressionOpt
- | SBreak ExpressionOpt
- | SBlock [Statement]
- | SIf Expression Statement StatementOpt
- | SSwitch Expression [Statement]
- | SCase [SwitchCase] [Statement]
- | SThrow Expression
- | STry Statement Statement StatementOpt
- | SCatch ExpressionOpt Statement
- | SFinally Statement
- | SReturn Expression
- | SWith Expression Statement
Documentation
data ObjectProperty Source #
Constructors
| OPI Expression | |
| OPKV Expression Expression | |
| OP Expression | |
| OPM Expression |
Instances
| Show ObjectProperty Source # | |
Defined in Language.JS.Types Methods showsPrec :: Int -> ObjectProperty -> ShowS # show :: ObjectProperty -> String # showList :: [ObjectProperty] -> ShowS # | |
data SwitchCase Source #
Constructors
| Case Expression | |
| DefaultCase |
Instances
| Show SwitchCase Source # | |
Defined in Language.JS.Types Methods showsPrec :: Int -> SwitchCase -> ShowS # show :: SwitchCase -> String # showList :: [SwitchCase] -> ShowS # | |
type ExpressionOpt = Maybe Expression Source #
type StatementOpt = Maybe Statement Source #
data ImportClause Source #
import and export binds * as identifier A, ... {x,...}
Constructors
| Namespace Expression | |
| DefaultName Expression | |
| BindNames [Expression] |
Instances
| Show ImportClause Source # | |
Defined in Language.JS.Types Methods showsPrec :: Int -> ImportClause -> ShowS # show :: ImportClause -> String # showList :: [ImportClause] -> ShowS # | |
data BindExpression Source #
Constructors
| BindVar Expression (Maybe Expression) | |
| BindPattern Expression (Maybe Expression) | |
| BindRest Expression |
Instances
| Show BindExpression Source # | |
Defined in Language.JS.Types Methods showsPrec :: Int -> BindExpression -> ShowS # show :: BindExpression -> String # showList :: [BindExpression] -> ShowS # | |
data TemplateString Source #
Constructors
| TString String | |
| TExpression Expression |
Instances
| Show TemplateString Source # | |
Defined in Language.JS.Types Methods showsPrec :: Int -> TemplateString -> ShowS # show :: TemplateString -> String # showList :: [TemplateString] -> ShowS # | |
data Expression Source #
Constructors
Instances
| Show Expression Source # | |
Defined in Language.JS.Types Methods showsPrec :: Int -> Expression -> ShowS # show :: Expression -> String # showList :: [Expression] -> ShowS # | |
Constructors