Skip to content

Commit 57c6cc6

Browse files
committed
[ #433 ] Add Haskell.System.Environment
1 parent 027fce0 commit 57c6cc6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
open import Haskell.Prelude
3+
open import Haskell.Control.Exception
4+
5+
module Haskell.System.Environment where
6+
7+
postulate
8+
getArgs : IO (List String)
9+
getProgName : IO String
10+
executablePath : Maybe (IO (Maybe FilePath))
11+
getExecutablePath : IO FilePath
12+
getEnv : @0 {{MayThrow IOException}} String IO String
13+
lookupEnv : String IO (Maybe String)
14+
setEnv : @0 {{MayThrow IOException}} String String IO ⊤
15+
unsetEnv : @0 {{MayThrow IOException}} String IO ⊤
16+
withArgs : List String IO a IO a
17+
withProgName : String IO a IO a
18+
getEnvironment : IO (List (String × String))

0 commit comments

Comments
 (0)