Idris2/tests/idris2/with003/input
Edwin Brady d12487f529 HasIO interface for IO actions
Also updates the Prelude and some base libraries to use HasIO rather
than using IO directly.
2020-06-21 01:18:43 +01:00

10 lines
357 B
Plaintext

do myPrintLn "foo"; myPrintLn "boo"; map (+1) (myPrintLn "woo"); myPrintLn "goo"; myPrintLn "foo"
with Prelude.(>>=) do myPrintLn "foo"; myPrintLn "boo"; map (+1) (myPrintLn "woo"); myPrintLn "goo"; myPrintLn "foo"
:t []
:t with Vect.Nil []
:t with Prelude.Nil []
:t with [Vect.Nil, Prelude.(::)] [1,2,3]
:t with pure the (Maybe _) (pure 4)
:t with [] 4
:q