@@ -67,7 +67,7 @@ import Web.HttpApiData (FromHttpApiData, parseHeader,
67 parseQueryParam,
67 parseQueryParam,
68 parseUrlPieceMaybe,
68 parseUrlPieceMaybe,
69 parseUrlPieces)
69 parseUrlPieces)
70−import Servant.API ((:<|>) (..), (:>), BasicAuth, Capture,
70+import Servant.API ((:<|>) (..), (:>), BasicAuth, Capture',
71 CaptureAll, Verb, EmptyAPI,
71 CaptureAll, Verb, EmptyAPI,
72 ReflectMethod(reflectMethod),
72 ReflectMethod(reflectMethod),
73 IsSecure(..), Header', QueryFlag,
73 IsSecure(..), Header', QueryFlag,
@@ -164,9 +164,9 @@ instance (HasServer a context, HasServer b context) => HasServer (a :<|> b) cont
164-- > where getBook :: Text -> Handler Book
164-- > where getBook :: Text -> Handler Book
165-- > getBook isbn = ...
165-- > getBook isbn = ...
166instance (KnownSymbol capture, FromHttpApiData a, HasServer api context)
166instance (KnownSymbol capture, FromHttpApiData a, HasServer api context)
167− => HasServer (Capture capture a :> api) context where
167+ => HasServer (Capture' mods capture a :> api) context where
169− type ServerT (Capture capture a :> api) m =
169+ type ServerT (Capture' mods capture a :> api) m =
170 a -> ServerT api m
170 a -> ServerT api m
172 hoistServerWithContext _ pc nt s = hoistServerWithContext (Proxy :: Proxy api) pc nt . s
172 hoistServerWithContext _ pc nt s = hoistServerWithContext (Proxy :: Proxy api) pc nt . s
@@ -749,14 +749,14 @@ instance (HasContextEntry context (NamedContext name subContext), HasServer subA
750-- ...Expected something of kind Symbol or *, got: k -> l on the LHS of ':>'.
750-- ...Expected something of kind Symbol or *, got: k -> l on the LHS of ':>'.
751-- ...Maybe you haven't applied enough arguments to
751-- ...Maybe you haven't applied enough arguments to
752−-- ...Capture "foo"
752+-- ...Capture' '[] "foo"
755-- >>> undefined :: Server (Capture "foo" :> Get '[JSON] Int)
755-- >>> undefined :: Server (Capture "foo" :> Get '[JSON] Int)
757-- ...Expected something of kind Symbol or *, got: k -> l on the LHS of ':>'.
757-- ...Expected something of kind Symbol or *, got: k -> l on the LHS of ':>'.
758-- ...Maybe you haven't applied enough arguments to
758-- ...Maybe you haven't applied enough arguments to
759−-- ...Capture "foo"
759+-- ...Capture' '[] "foo"
762instance TypeError (HasServerArrowKindError arr) => HasServer ((arr :: k -> l) :> api) context
762instance TypeError (HasServerArrowKindError arr) => HasServer ((arr :: k -> l) :> api) context
@@ -778,7 +778,7 @@ type HasServerArrowKindError arr =
779-- ...No instance HasServer (a -> b).
779-- ...No instance HasServer (a -> b).
780-- ...Maybe you have used '->' instead of ':>' between
780-- ...Maybe you have used '->' instead of ':>' between
781−-- ...Capture "foo" Int
781+-- ...Capture' '[] "foo" Int
783-- ...Verb 'GET 200 '[JSON] Int
783-- ...Verb 'GET 200 '[JSON] Int
@@ -787,7 +787,7 @@ type HasServerArrowKindError arr =
788-- ...No instance HasServer (a -> b).
788-- ...No instance HasServer (a -> b).
789-- ...Maybe you have used '->' instead of ':>' between
789-- ...Maybe you have used '->' instead of ':>' between
790−-- ...Capture "foo" Int
790+-- ...Capture' '[] "foo" Int
792-- ...Verb 'GET 200 '[JSON] Int
792-- ...Verb 'GET 200 '[JSON] Int