idris

Safe HaskellNone

Idris.ElabTerm

Synopsis

Documentation

data ElabInfo Source

Constructors

EInfo 

Fields

params :: [(Name, PTerm)]
 
inblock :: Ctxt [Name]
 
liftname :: Name -> Name
 
namespace :: Maybe [String]
 

elab :: IState -> ElabInfo -> Bool -> Bool -> Name -> PTerm -> ElabD ()Source

reflm :: String -> NameSource

Prefix a name with the Reflection.Language namespace

reify :: IState -> Term -> ElabD PTacticSource

Reify tactics from their reflected representation

reifyTT :: Term -> ElabD TermSource

Reify terms from their reflected representation

reifyRaw :: Term -> ElabD RawSource

Reify raw terms from their reflected representation

reflCall :: String -> [Raw] -> RawSource

Create a reflected call to a named function/constructor

reflect :: Term -> RawSource

Lift a term into its Language.Reflection.TT representation

reflectEnv :: Env -> RawSource

Reflect the environment of a proof into a List (TTName, Binder TT)

reflectErr :: Err -> RawSource

Reflect an error into the internal datatype of Idris -- TODO