Skip to content

Commit e665b50

Browse files
committed
Fix minor warnings (unused-imports and unused-foralls)
1 parent de8abe2 commit e665b50

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Servant/Swagger/Internal.hs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ module Servant.Swagger.Internal where
1818

1919
import Control.Lens
2020
import Data.Aeson
21-
import Data.HashMap.Strict (HashMap)
22-
import qualified Data.HashMap.Strict as HashMap
2321
import Data.Monoid
2422
import Data.Proxy
2523
import qualified Data.Swagger as Swagger
@@ -84,10 +82,10 @@ subOperations sub _ = operationsOf (toSwagger sub)
8482

8583
-- | Make a singleton Swagger spec (with only one endpoint).
8684
-- For endpoints with no content see 'mkEndpointNoContent'.
87-
mkEndpoint :: forall a cs hs proxy proxy' method status.
85+
mkEndpoint :: forall a cs hs proxy method status.
8886
(ToSchema a, AllAccept cs, AllToResponseHeader hs, SwaggerMethod method, KnownNat status)
8987
=> FilePath -- ^ Endpoint path.
90-
-> proxy' (Verb method status cs (Headers hs a)) -- ^ Method, content-types, headers and response.
88+
-> proxy (Verb method status cs (Headers hs a)) -- ^ Method, content-types, headers and response.
9189
-> Swagger
9290
mkEndpoint path proxy
9391
= mkEndpointWithSchemaRef (Just ref) path proxy
@@ -96,10 +94,10 @@ mkEndpoint path proxy
9694
(defs, ref) = runDeclare (declareSchemaRef (Proxy :: Proxy a)) mempty
9795

9896
-- | Make a singletone 'Swagger' spec (with only one endpoint) and with no content schema.
99-
mkEndpointNoContent :: forall nocontent cs hs proxy proxy' method status.
97+
mkEndpointNoContent :: forall nocontent cs hs proxy method status.
10098
(AllAccept cs, AllToResponseHeader hs, SwaggerMethod method, KnownNat status)
10199
=> FilePath -- ^ Endpoint path.
102-
-> proxy' (Verb method status cs (Headers hs nocontent)) -- ^ Method, content-types, headers and response.
100+
-> proxy (Verb method status cs (Headers hs nocontent)) -- ^ Method, content-types, headers and response.
103101
-> Swagger
104102
mkEndpointNoContent path proxy
105103
= mkEndpointWithSchemaRef Nothing path proxy

0 commit comments

Comments
 (0)