-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #216 from phadej/cleanups-ghc-8.10
Cleanup stuff after GHC-8.10
- Loading branch information
Showing
15 changed files
with
136 additions
and
273 deletions.
There are no files selected for viewing
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
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
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
{-# LANGUAGE CPP #-} | ||
-- | | ||
-- Module: Data.Swagger | ||
-- Maintainer: Nickolay Kudasov <[email protected]> | ||
|
@@ -295,21 +294,6 @@ import Data.Swagger.Internal | |
-- | ||
-- we can not derive a valid schema for a mix of the above. The following will result in a type error | ||
-- | ||
#if __GLASGOW_HASKELL__ < 800 | ||
-- >>> data BadMixedType = ChoiceBool Bool | JustTag deriving Generic | ||
-- >>> instance ToSchema BadMixedType | ||
-- ... | ||
-- ... error: | ||
-- ... • No instance for (Data.Swagger.Internal.TypeShape.CannotDeriveSchemaForMixedSumType | ||
-- ... BadMixedType) | ||
-- ... arising from a use of ‘Data.Swagger.Internal.Schema.$dmdeclareNamedSchema’ | ||
-- ... • In the expression: | ||
-- ... Data.Swagger.Internal.Schema.$dmdeclareNamedSchema @BadMixedType | ||
-- ... In an equation for ‘declareNamedSchema’: | ||
-- ... declareNamedSchema | ||
-- ... = Data.Swagger.Internal.Schema.$dmdeclareNamedSchema @BadMixedType | ||
-- ... In the instance declaration for ‘ToSchema BadMixedType’ | ||
#else | ||
-- >>> data BadMixedType = ChoiceBool Bool | JustTag deriving Generic | ||
-- >>> instance ToSchema BadMixedType | ||
-- ... | ||
|
@@ -320,13 +304,8 @@ import Data.Swagger.Internal | |
-- ... Use genericDeclareNamedSchemaUnrestricted if you want to derive schema | ||
-- ... that matches aeson's Generic-based toJSON, | ||
-- ... but that's not supported by some Swagger tools. | ||
-- ... • In the expression: | ||
-- ... Data.Swagger.Internal.Schema.$dmdeclareNamedSchema @BadMixedType | ||
-- ... In an equation for ‘declareNamedSchema’: | ||
-- ... declareNamedSchema | ||
-- ... = Data.Swagger.Internal.Schema.$dmdeclareNamedSchema @BadMixedType | ||
-- ... In the instance declaration for ‘ToSchema BadMixedType’ | ||
#endif | ||
-- ... | ||
-- ... In the instance declaration for ‘ToSchema BadMixedType’ | ||
-- | ||
-- We can use 'genericDeclareNamedSchemaUnrestricted' to try our best to represent this type as a Swagger Schema and match 'ToJSON': | ||
-- | ||
|
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
Oops, something went wrong.