Idris2-boot/libs/base/System.idr
Edwin Brady 0f56c239c2 Parse pattern matching lambda
This is now enough for Chapter 5 tests to work
2019-07-03 13:04:25 +01:00

19 lines
324 B
Idris

module System
import Data.So
%cg chicken (use posix)
export
sleep : Int -> IO ()
sleep sec = schemeCall () "blodwen-sleep" [sec]
export
usleep : (x : Int) -> So (x >= 0) => IO ()
usleep usec = schemeCall () "blodwen-usleep" [usec]
export
getArgs : IO (List String)
getArgs = schemeCall (List String) "blodwen-args" []