idris

Safe HaskellNone

Idris.ElabDecls

Synopsis

Documentation

checkDef :: FC -> [(t, (t1, t2, TT Name))] -> StateT IState (ErrorT Err IO) [(t, (t1, t2, Term))]Source

elabType :: ElabInfo -> SyntaxInfo -> String -> FC -> FnOpts -> Name -> PTerm -> Idris TypeSource

Elaborate a top-level type declaration - for example, foo : Int -> Int.

elabPrims :: Idris ()Source

Elaborate primitives

elabProvider :: ElabInfo -> SyntaxInfo -> FC -> Name -> PTerm -> PTerm -> Idris ()Source

Elaborate a type provider

elabTransform :: ElabInfo -> FC -> Bool -> PTerm -> PTerm -> Idris ()Source

Elaborate a type provider

elabClauses :: ElabInfo -> FC -> FnOpts -> Name -> [PClause] -> Idris ()Source

Elaborate a collection of left-hand and right-hand pairs - that is, a top-level definition.

data MArgTy Source

Constructors

IA 
EA 
CA 

Instances

elabClass :: ElabInfo -> SyntaxInfo -> String -> FC -> [PTerm] -> Name -> [(Name, PTerm)] -> [PDecl] -> Idris ()Source

pbty :: TT n -> TT n -> TT nSource

getPBtys :: TT t -> [(t, TT t)]Source

psolve :: TT t -> StateT (ElabState aux) TC ()Source

data ElabWhat Source

Constructors

ETypes 
EDefns 
EAll 

Instances