avoid warning on windows build
This commit is contained in:
parent
4034de2be6
commit
8a20f4ed24
1 changed files with 1 additions and 1 deletions
|
@ -58,6 +58,6 @@ myVal envvars extract = go envvars
|
||||||
#ifndef mingw32_HOST_OS
|
#ifndef mingw32_HOST_OS
|
||||||
go [] = extract <$> (getUserEntryForID =<< getEffectiveUserID)
|
go [] = extract <$> (getUserEntryForID =<< getEffectiveUserID)
|
||||||
#else
|
#else
|
||||||
go [] = error $ "environment not set: " ++ show envvars
|
go [] = extract <$> error ("environment not set: " ++ show envvars)
|
||||||
#endif
|
#endif
|
||||||
go (v:vs) = maybe (go vs) return =<< getEnv v
|
go (v:vs) = maybe (go vs) return =<< getEnv v
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue