Idris2-boot/tests/idris2/interactive009/expected
Edwin Brady e6292acdf0 Finish adding interactive tests from Blodwen
This involved implementing the 'TryWithImplicits' hack for allowing
unbound implicits in types with case blocks
2019-06-24 16:23:32 +01:00

21 lines
577 B
Plaintext

1/1: Building Door (Door.idr)
Welcome to Idris 2 version 0.0. Enjoy yourself!
Main> (x @@ res) => ?now_4
Main> (True @@ d) => ?now_4
(False @@ d) => ?now_5
Main> x : Integer
0 m : Type -> Type
1 d : Door Open
0 r : Res Bool (\r => (Door (if r then Open else Closed)))
-------------------------------------
now_2 : Use Many m ()
Main> x : Integer
0 m : Type -> Type
1 d : Door Closed
0 r : Res Bool (\r => (Door (if r then Open else Closed)))
-------------------------------------
now_3 : Use Many m ()
Main> Bye for now!