Idris2/tests/chez/chez024/Envy.idr

17 lines
309 B
Idris
Raw Normal View History

2020-06-16 13:22:21 +03:00
module Main
import System
main : IO ()
main = do
ok <- setEnv "HELLO" "HI" True
printLn ok
Just str <- getEnv "HELLO"
| Nothing => pure ()
putStrLn str
ok <- unsetEnv "HELLO"
printLn ok
Just str <- getEnv "HELLO"
| Nothing => putStrLn "Nothing there"
pure ()