idris-1.0: Functional Programming Language with Dependent Types

Copyright | License : BSD3
Maintainer | The Idris Community.
Safe Haskell | None
Language | Haskell98

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 ()), then printing it as an Integer (as a default numeric tye), then printing it as any Showable thing

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