mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-24 12:14:26 +03:00
18 lines
513 B
Plaintext
18 lines
513 B
Plaintext
1/1: Building Door (Door.lidr)
|
|
Main> > (val # y) => ?now_0
|
|
Main> > (False # d) => ?now_4
|
|
> (True # d) => ?now_5
|
|
Main> 0 m : Type -> Type
|
|
1 d : Door Open
|
|
x : Integer
|
|
0 r : Res Bool (\r => Door (if r then Open else Closed))
|
|
------------------------------
|
|
now_2 : Use Many m ()
|
|
Main> 0 m : Type -> Type
|
|
1 d : Door Closed
|
|
x : Integer
|
|
0 r : Res Bool (\r => Door (if r then Open else Closed))
|
|
------------------------------
|
|
now_3 : Use Many m ()
|
|
Main> Bye for now!
|