wave-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

JS.Ast

Documentation

type Var = Text Source #

type Record a = Map Var a Source #

data Lit Source #

Instances

Instances details
Eq Lit Source # 
Instance details

Defined in JS.Ast

Methods

(==) :: Lit -> Lit -> Bool #

(/=) :: Lit -> Lit -> Bool #

Show Lit Source # 
Instance details

Defined in JS.Ast

Methods

showsPrec :: Int -> Lit -> ShowS #

show :: Lit -> String #

showList :: [Lit] -> ShowS #

data Statement Source #

Instances

Instances details
Eq Statement Source # 
Instance details

Defined in JS.Ast

Show Statement Source # 
Instance details

Defined in JS.Ast

data Expr Source #

Instances

Instances details
Eq Expr Source # 
Instance details

Defined in JS.Ast

Methods

(==) :: Expr -> Expr -> Bool #

(/=) :: Expr -> Expr -> Bool #

Show Expr Source # 
Instance details

Defined in JS.Ast

Methods

showsPrec :: Int -> Expr -> ShowS #

show :: Expr -> String #

showList :: [Expr] -> ShowS #

data Definition Source #

Constructors

Variable Var Expr 
Function Var [Var] Sub 

Instances

Instances details
Eq Definition Source # 
Instance details

Defined in JS.Ast

Show Definition Source # 
Instance details

Defined in JS.Ast

newtype File Source #

Constructors

File [Statement] 

Instances

Instances details
Eq File Source # 
Instance details

Defined in JS.Ast

Methods

(==) :: File -> File -> Bool #

(/=) :: File -> File -> Bool #

Show File Source # 
Instance details

Defined in JS.Ast

Methods

showsPrec :: Int -> File -> ShowS #

show :: File -> String #

showList :: [File] -> ShowS #