28 lines · 520 B · Text
RawDownload
module Language.Reflection import public Language.Reflection.TTimport public Language.Reflection.TTImp public exportdata Elab : Type -> Type where     Pure : a -> Elab a     Bind : Elab a -> (a -> Elab b) -> Elab b      Check : TTImp -> Elab a mutual  export  Functor Elab where    map f e = do e' <- e                 pure (f e')   export  Applicative Elab where    pure = Pure    f <*> a = do f' <- f                 a' <- a                 pure (f' a')   export  Monad Elab where    (>>=) = Bind

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t