mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 09:12:34 +03:00
17 lines
309 B
Idris
17 lines
309 B
Idris
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 ()
|