25 lines · 544 B · Text
RawDownload
data A : Type where  The : Type -> A U : A -> TypeU (The x) = x works : (a : A) -> (H : U a) -> (let q = H in Nat)works a h = 0 fails : (a : A) -> (H : U a) -> (let q : U a = H in Nat)fails a h = 0 dolet : Maybe Int -> Maybe Int -> Maybe Intdolet x y    = do let Just x' : Maybe Int = x             | Nothing => Nothing         y' <- y         pure (x' + y') dolet2 : Maybe Int -> Maybe Int -> Maybe Intdolet2 x y    = do let Just x' : Maybe String = x             | Nothing => Nothing         y' <- y         pure (x' + y')

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