Idris.Elab.Value

idris-1.3.4: Functional Programming Language with Dependent Types

License | BSD3
Maintainer | The Idris Community.
Safe Haskell | None
Language | Haskell2010

Idris.Elab.Value

Description

Synopsis

- elabVal :: ElabInfo -> ElabMode -> PTerm -> Idris (Term, Type)
- elabValBind :: ElabInfo -> ElabMode -> Bool -> PTerm -> Idris (Term, Type, [(Name, Type)])
- elabDocTerms :: ElabInfo -> Docstring (Either Err PTerm) -> Idris (Docstring DocTerm)
- elabExec :: FC -> PTerm -> PTerm
- elabREPL :: ElabInfo -> ElabMode -> PTerm -> Idris (Term, Type)

# Documentation

elabVal :: ElabInfo -> ElabMode -> PTerm -> Idris (Term, Type) #

elabValBind :: ElabInfo -> ElabMode -> Bool -> PTerm -> Idris (Term, Type, [(Name, Type)]) #

Elaborate a value, returning any new bindings created (this will only happen if elaborating as a pattern clause)

elabDocTerms :: ElabInfo -> Docstring (Either Err PTerm) -> Idris (Docstring DocTerm) #

elabExec :: FC -> PTerm -> PTerm #

Try running the term directly (as IO ()) or with >>= printLn appended (for other IO _), then printing it as an Integer (as a default numeric type), then printing it as any Showable thing

elabREPL :: ElabInfo -> ElabMode -> PTerm -> Idris (Term, Type) #