avoid warning on windows build

This commit is contained in:
Joey Hess 2016-02-15 15:11:06 -04:00
parent 4034de2be6
commit 8a20f4ed24
Failed to extract signature

View file

@ -58,6 +58,6 @@ myVal envvars extract = go envvars
#ifndef mingw32_HOST_OS
go [] = extract <$> (getUserEntryForID =<< getEffectiveUserID)
#else
go [] = error $ "environment not set: " ++ show envvars
go [] = extract <$> error ("environment not set: " ++ show envvars)
#endif
go (v:vs) = maybe (go vs) return =<< getEnv v