Skip to content

Commit 67322d8

Browse files
author
Gaël Deest
authored
Merge pull request #1525 from k0001/fix-9.2.1
servant-server: Fix build on GHC 9.2.1
2 parents a8f1a76 + 61d0d14 commit 67322d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

servant-server/src/Servant/Server/Internal.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import qualified Data.ByteString as B
4141
import qualified Data.ByteString.Builder as BB
4242
import qualified Data.ByteString.Char8 as BC8
4343
import qualified Data.ByteString.Lazy as BL
44-
import Data.Constraint (Dict(..))
44+
import Data.Constraint (Constraint, Dict(..))
4545
import Data.Either
4646
(partitionEithers)
4747
import Data.Maybe
@@ -821,7 +821,7 @@ instance (HasContextEntry context (NamedContext name subContext), HasServer subA
821821
-- Erroring instance for 'HasServer' when a combinator is not fully applied
822822
instance TypeError (PartialApplication HasServer arr) => HasServer ((arr :: a -> b) :> sub) context
823823
where
824-
type ServerT (arr :> sub) _ = TypeError (PartialApplication HasServer arr)
824+
type ServerT (arr :> sub) _ = TypeError (PartialApplication (HasServer :: * -> [*] -> Constraint) arr)
825825
route = error "unreachable"
826826
hoistServerWithContext _ _ _ _ = error "unreachable"
827827

0 commit comments

Comments
 (0)