idris-0.11: Functional Programming Language with Dependent Types

Safe HaskellNone
LanguageHaskell98

Idris.Delaborate

Synopsis

Documentation

delab :: IState -> Term -> PTerm Source

Delaborate a term without resugaring

delabSugared :: IState -> Term -> PTerm Source

Delaborate and resugar a term

delabTy' Source

Arguments

:: IState 
-> [PArg]

implicit arguments to type, if any

-> Term 
-> Bool

use full names

-> Bool

Don't treat metavariables specially

-> PTerm 

fancifyAnnots :: IState -> Bool -> OutputAnnotation -> OutputAnnotation Source

Add extra metadata to an output annotation, optionally marking metavariables.

pprintDelab :: IState -> Term -> Doc OutputAnnotation Source

Pretty-print a core term using delaboration

pprintDelabTy :: IState -> Name -> Doc OutputAnnotation Source

Pretty-print the type of some name

resugar :: IState -> PTerm -> PTerm Source

Re-add syntactic sugar in a term