idris-1.2.0: Functional Programming Language with Dependent Types

LicenseBSD3
MaintainerThe Idris Community.
Safe HaskellNone
LanguageHaskell2010

Idris.Providers

Description

 

Synopsis

Documentation

providerTy :: FC -> PTerm -> PTerm Source #

Wrap a type provider in the type of type providers

getProvided :: FC -> TT Name -> Idris (Provided (TT Name)) Source #

Handle an error, if the type provider returned an error. Otherwise return the provided term.

data Provided a Source #

Constructors

Provide a 

Instances

Functor Provided Source # 

Methods

fmap :: (a -> b) -> Provided a -> Provided b #

(<$) :: a -> Provided b -> Provided a #

Eq a => Eq (Provided a) Source # 

Methods

(==) :: Provided a -> Provided a -> Bool #

(/=) :: Provided a -> Provided a -> Bool #

Show a => Show (Provided a) Source # 

Methods

showsPrec :: Int -> Provided a -> ShowS #

show :: Provided a -> String #

showList :: [Provided a] -> ShowS #