2020-05-19 20:25:18 +03:00
|
|
|
1/1: Building Door (Door.idr)
|
2021-11-24 00:19:20 +03:00
|
|
|
Main> (val # y) => ?now_0
|
2021-05-09 22:03:56 +03:00
|
|
|
Main> (False # d) => ?now_4
|
|
|
|
(True # d) => ?now_5
|
2020-05-19 20:25:18 +03:00
|
|
|
Main> 0 m : Type -> Type
|
|
|
|
1 d : Door Open
|
|
|
|
x : Integer
|
2020-08-04 14:51:57 +03:00
|
|
|
0 r : Res Bool (\r => Door (if r then Open else Closed))
|
2020-08-18 15:36:34 +03:00
|
|
|
------------------------------
|
2020-05-19 20:25:18 +03:00
|
|
|
now_2 : Use Many m ()
|
|
|
|
Main> 0 m : Type -> Type
|
|
|
|
1 d : Door Closed
|
|
|
|
x : Integer
|
2020-08-04 14:51:57 +03:00
|
|
|
0 r : Res Bool (\r => Door (if r then Open else Closed))
|
2020-08-18 15:36:34 +03:00
|
|
|
------------------------------
|
2020-05-19 20:25:18 +03:00
|
|
|
now_3 : Use Many m ()
|
|
|
|
Main> Bye for now!
|