@@ -47,6 +47,8 @@ import qualified Data.ByteString.Lazy as BL
47
47
import Data.Constraint (Constraint , Dict (.. ))
48
48
import Data.Either
49
49
(partitionEithers )
50
+ import Data.Kind
51
+ (Type )
50
52
import Data.Maybe
51
53
(fromMaybe , isNothing , mapMaybe , maybeToList )
52
54
import Data.String
@@ -97,8 +99,6 @@ import Servant.API.TypeErrors
97
99
import Web.HttpApiData
98
100
(FromHttpApiData , parseHeader , parseQueryParam , parseUrlPiece ,
99
101
parseUrlPieces )
100
- import Data.Kind
101
- (Type )
102
102
103
103
import Servant.Server.Internal.BasicAuth
104
104
import Servant.Server.Internal.Context
@@ -121,7 +121,7 @@ class HasServer api context where
121
121
--
122
122
-- Note that the result kind is @*@, so it is /not/ a monad transformer, unlike
123
123
-- what the @T@ in the name might suggest.
124
- type ServerT api (m :: * -> * ) :: *
124
+ type ServerT api (m :: Type -> Type ) :: Type
125
125
126
126
route ::
127
127
Proxy api
@@ -900,7 +900,7 @@ instance TypeError (PartialApplication
900
900
#endif
901
901
HasServer arr) => HasServer ((arr :: a -> b ) :> sub) context
902
902
where
903
- type ServerT (arr :> sub ) _ = TypeError (PartialApplication (HasServer :: * -> [* ] -> Constraint ) arr )
903
+ type ServerT (arr :> sub ) _ = TypeError (PartialApplication (HasServer :: Type -> [Type ] -> Constraint ) arr )
904
904
route = error " unreachable"
905
905
hoistServerWithContext _ _ _ _ = error " unreachable"
906
906
@@ -973,7 +973,7 @@ instance (AtLeastOneFragment api, FragmentUnique (Fragment a1 :> api), HasServer
973
973
-- >>> import Servant
974
974
975
975
-- | A type that specifies that an API record contains a server implementation.
976
- data AsServerT (m :: * -> * )
976
+ data AsServerT (m :: Type -> Type )
977
977
instance GenericMode (AsServerT m ) where
978
978
type AsServerT m :- api = ServerT api m
979
979
@@ -999,7 +999,7 @@ type GServerConstraints api m =
999
999
-- Users shouldn't have to worry about this class, as the only possible instance
1000
1000
-- is provided in this module for all record APIs.
1001
1001
1002
- class GServer (api :: * -> * ) (m :: * -> * ) where
1002
+ class GServer (api :: Type -> Type ) (m :: Type -> Type ) where
1003
1003
gServerProof :: Dict (GServerConstraints api m )
1004
1004
1005
1005
instance
0 commit comments