fix build with unix-2.8.0
authorJoey Hess <joeyh@joeyh.name>
Tue, 1 Aug 2023 21:47:30 +0000 (17:47 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 1 Aug 2023 21:47:30 +0000 (17:47 -0400)
It made UserInfo into a pattern to discourage manually constructing
them, so just to use UserInfo in a type signature of a function that
consumes them, have to import the new ByteString module.

Utility/UserInfo.hs

index 5001785734e1dff12603b1d2dba38c99a67e866b..b2c4ddaaf82eae240f39bb83fb8c60b6d37215fe 100644 (file)
@@ -20,6 +20,9 @@ import Utility.Exception
 import Utility.Data
 import Control.Applicative
 import System.Posix.User
+#if MIN_VERSION_unix(2,8,0)
+import System.Posix.User.ByteString (UserEntry)
+#endif
 #endif
 
 import Prelude