fix build on windows

This commit is contained in:
Joey Hess 2023-08-02 10:43:20 -04:00
parent 8adafdd013
commit 9a60f5b65f
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -68,7 +68,7 @@ myVal envvars extract = go envvars
myVal :: [String] -> IO (Either String String)
myVal envvars = go envvars
where
go [] = envnotset
go [] = return envnotset
go (v:vs) = maybe (go vs) (return . Right) =<< getEnv v
#endif
envnotset = Left ("environment not set: " ++ show envvars)