-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add partial header to haskell http client (#6606)
- Loading branch information
Showing
17 changed files
with
114 additions
and
21 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
modules/swagger-codegen/src/main/resources/haskell-http-client/API.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{{>partial_header}} | ||
{-| | ||
Module : {{title}}.API | ||
-} | ||
|
1 change: 1 addition & 0 deletions
1
modules/swagger-codegen/src/main/resources/haskell-http-client/Client.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{{>partial_header}} | ||
{-| | ||
Module : {{title}}.Client | ||
-} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
modules/swagger-codegen/src/main/resources/haskell-http-client/LoggingKatip.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{{>partial_header}} | ||
{-| | ||
Module : {{title}}.Logging | ||
Katip Logging functions | ||
|
1 change: 1 addition & 0 deletions
1
modules/swagger-codegen/src/main/resources/haskell-http-client/LoggingMonadLogger.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{{>partial_header}} | ||
{-| | ||
Module : {{title}}.Logging | ||
monad-logger Logging functions | ||
|
2 changes: 1 addition & 1 deletion
2
modules/swagger-codegen/src/main/resources/haskell-http-client/MimeTypes.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
{{>partial_header}} | ||
{-| | ||
Module : {{title}}.MimeTypes | ||
-} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
modules/swagger-codegen/src/main/resources/haskell-http-client/TopLevel.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{{>partial_header}} | ||
{-| | ||
Module : {{title}} | ||
-} | ||
|
17 changes: 17 additions & 0 deletions
17
modules/swagger-codegen/src/main/resources/haskell-http-client/partial_header.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{- | ||
{{#appName}} | ||
{{{appName}}} | ||
|
||
{{/appName}} | ||
{{#appDescription}} | ||
{{{appDescription}}} | ||
|
||
{{/appDescription}} | ||
{{#version}} | ||
OpenAPI spec version: {{{version}}} | ||
{{/version}} | ||
{{#infoEmail}} | ||
Contact: {{{infoEmail}}} | ||
{{/infoEmail}} | ||
Generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
-} |
10 changes: 10 additions & 0 deletions
10
samples/client/petstore/haskell-http-client/lib/SwaggerPetstore.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
{- | ||
Swagger Petstore | ||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ | ||
OpenAPI spec version: 1.0.0 | ||
Contact: [email protected] | ||
Generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
-} | ||
|
||
{-| | ||
Module : SwaggerPetstore | ||
-} | ||
|
10 changes: 10 additions & 0 deletions
10
samples/client/petstore/haskell-http-client/lib/SwaggerPetstore/API.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
{- | ||
Swagger Petstore | ||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ | ||
OpenAPI spec version: 1.0.0 | ||
Contact: [email protected] | ||
Generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
-} | ||
|
||
{-| | ||
Module : SwaggerPetstore.API | ||
-} | ||
|
10 changes: 10 additions & 0 deletions
10
samples/client/petstore/haskell-http-client/lib/SwaggerPetstore/Client.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
{- | ||
Swagger Petstore | ||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ | ||
OpenAPI spec version: 1.0.0 | ||
Contact: [email protected] | ||
Generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
-} | ||
|
||
{-| | ||
Module : SwaggerPetstore.Client | ||
-} | ||
|
10 changes: 10 additions & 0 deletions
10
samples/client/petstore/haskell-http-client/lib/SwaggerPetstore/Lens.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
{- | ||
Swagger Petstore | ||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ | ||
OpenAPI spec version: 1.0.0 | ||
Contact: [email protected] | ||
Generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
-} | ||
|
||
{-| | ||
Module : SwaggerPetstore.Lens | ||
-} | ||
|
10 changes: 10 additions & 0 deletions
10
samples/client/petstore/haskell-http-client/lib/SwaggerPetstore/Logging.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
{- | ||
Swagger Petstore | ||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ | ||
OpenAPI spec version: 1.0.0 | ||
Contact: [email protected] | ||
Generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
-} | ||
|
||
{-| | ||
Module : SwaggerPetstore.Logging | ||
Katip Logging functions | ||
|
9 changes: 9 additions & 0 deletions
9
samples/client/petstore/haskell-http-client/lib/SwaggerPetstore/MimeTypes.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
{- | ||
Swagger Petstore | ||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ | ||
OpenAPI spec version: 1.0.0 | ||
Contact: [email protected] | ||
Generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
-} | ||
|
||
{-| | ||
Module : SwaggerPetstore.MimeTypes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
{- | ||
Swagger Petstore | ||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ | ||
OpenAPI spec version: 1.0.0 | ||
Contact: [email protected] | ||
Generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
-} | ||
|
||
{-| | ||
Module : SwaggerPetstore.Model | ||
-} | ||
|
@@ -1413,4 +1423,4 @@ _readBinaryBase64 = P.either P.fail (pure . Binary) . BL64.decode . BL.fromStric | |
|
||
_showBinaryBase64 :: Binary -> Text | ||
_showBinaryBase64 = T.decodeUtf8 . BL.toStrict . BL64.encode . unBinary | ||
{-# INLINE _showBinaryBase64 #-} | ||
{-# INLINE _showBinaryBase64 #-} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters