diff options
Diffstat (limited to 'testkiki')
-rw-r--r-- | testkiki/testkiki.hs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/testkiki/testkiki.hs b/testkiki/testkiki.hs index 839cebf..32c8284 100644 --- a/testkiki/testkiki.hs +++ b/testkiki/testkiki.hs | |||
@@ -1,5 +1,9 @@ | |||
1 | {-# LANGUAGE OverloadedStrings #-} | 1 | {-# LANGUAGE OverloadedStrings #-} |
2 | {-# LANGUAGE DoAndIfThenElse #-} | 2 | {-# LANGUAGE DoAndIfThenElse #-} |
3 | {-# LANGUAGE CPP #-} | ||
4 | #if !MIN_VERSION_base(4,7,0) | ||
5 | import qualified System.Posix.Env | ||
6 | #endif | ||
3 | import System.Environment | 7 | import System.Environment |
4 | --import System.Posix.Env.ByteString (getEnv) | 8 | --import System.Posix.Env.ByteString (getEnv) |
5 | import System.Posix.Files | 9 | import System.Posix.Files |
@@ -15,6 +19,10 @@ import Control.Applicative | |||
15 | import Control.Monad | 19 | import Control.Monad |
16 | import qualified Data.ByteString.Char8 as B | 20 | import qualified Data.ByteString.Char8 as B |
17 | 21 | ||
22 | #if !MIN_VERSION_base(4,7,0) | ||
23 | setEnv k v = System.Posix.Env.setEnv k v True | ||
24 | unsetEnv = System.Posix.Env.unsetEnv | ||
25 | #endif | ||
18 | 26 | ||
19 | data TestKikiSettings = TKS | 27 | data TestKikiSettings = TKS |
20 | { gnupghome :: FilePath | 28 | { gnupghome :: FilePath |
@@ -22,7 +30,6 @@ data TestKikiSettings = TKS | |||
22 | } | 30 | } |
23 | deriving (Show,Eq) | 31 | deriving (Show,Eq) |
24 | 32 | ||
25 | |||
26 | main = do | 33 | main = do |
27 | args <- getArgs | 34 | args <- getArgs |
28 | cwd <- getCurrentDirectory | 35 | cwd <- getCurrentDirectory |