Skip to content

Commit 23479b3

Browse files
Fjolnir-Dvorakwing328
authored andcommitted
[FIX][Haskell-servant] missing indent on the new feature pull request. (#4490)
* missing indent on the new feature pull request. * One indentation to much * Import for application was still missing * some middleware got in the runServer name
1 parent 1ccf4b9 commit 23479b3

File tree

2 files changed

+6
-6
lines changed
  • modules/openapi-generator/src/main/resources/haskell-servant
  • samples/server/petstore/haskell-servant/lib/OpenAPIPetstore

2 files changed

+6
-6
lines changed

modules/openapi-generator/src/main/resources/haskell-servant/API.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ import Servant.Client (ClientEnv, Scheme (Http), C
6161
mkClientEnv, parseBaseUrl)
6262
import Servant.Client.Core (baseUrlPort, baseUrlHost)
6363
import Servant.Client.Internal.HttpClient (ClientM (..))
64-
import Servant.Server (Handler (..)){{#serveStatic}}
64+
import Servant.Server (Handler (..), Application){{#serveStatic}}
6565
import Servant.Server.StaticFiles (serveDirectoryFileServer){{/serveStatic}}
6666
import Web.FormUrlEncoded
6767
import Web.HttpApiData
@@ -219,8 +219,8 @@ requestMiddlewareId a = a
219219

220220
-- | Run the {{title}} server at the provided host and port.
221221
run{{title}}Server
222-
:: (MonadIO m, MonadThrow m)
223-
=> Config -> {{title}}Backend (ExceptT ServerError IO) -> m ()
222+
:: (MonadIO m, MonadThrow m)
223+
=> Config -> {{title}}Backend (ExceptT ServerError IO) -> m ()
224224
run{{title}}Server config backend = run{{title}}MiddlewareServer config requestMiddlewareId backend
225225

226226
-- | Run the {{title}} server at the provided host and port.

samples/server/petstore/haskell-servant/lib/OpenAPIPetstore/API.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ import Servant.Client (ClientEnv, Scheme (Http), C
6161
mkClientEnv, parseBaseUrl)
6262
import Servant.Client.Core (baseUrlPort, baseUrlHost)
6363
import Servant.Client.Internal.HttpClient (ClientM (..))
64-
import Servant.Server (Handler (..))
64+
import Servant.Server (Handler (..), Application)
6565
import Servant.Server.StaticFiles (serveDirectoryFileServer)
6666
import Web.FormUrlEncoded
6767
import Web.HttpApiData
@@ -271,8 +271,8 @@ requestMiddlewareId a = a
271271

272272
-- | Run the OpenAPIPetstore server at the provided host and port.
273273
runOpenAPIPetstoreServer
274-
:: (MonadIO m, MonadThrow m)
275-
=> Config -> OpenAPIPetstoreBackend (ExceptT ServerError IO) -> m ()
274+
:: (MonadIO m, MonadThrow m)
275+
=> Config -> OpenAPIPetstoreBackend (ExceptT ServerError IO) -> m ()
276276
runOpenAPIPetstoreServer config backend = runOpenAPIPetstoreMiddlewareServer config requestMiddlewareId backend
277277

278278
-- | Run the OpenAPIPetstore server at the provided host and port.

0 commit comments

Comments
 (0)