From 63f76d0ac367cb3ccd26a35c204e8ab453651170 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 1 Aug 2023 17:47:30 -0400 Subject: [PATCH] fix build with unix-2.8.0 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Utility/UserInfo.hs b/Utility/UserInfo.hs index 5001785734..b2c4ddaaf8 100644 --- a/Utility/UserInfo.hs +++ b/Utility/UserInfo.hs @@ -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 -- 2.30.2