@@ -5,7 +5,7 @@ cabal-version: 1.12
55-- see: https://github.com/sol/hpack
66
77name: deriving-openapi3
8−version: 0.1.0.0
8+version: 0.1.0.1
99synopsis: DerivingVia for OpenAPI 3
1010description: DerivingVia for OpenAPI 3
1111category: JSON, Generics, OpenAPI
@@ -22,6 +22,11 @@ source-repository head
2222 type: git
2323 location: https://github.com/ilyakooo0/deriving-openapi3
2424
25+flag servant-description
26+ description: Create instances for the 'Description' type from 'servant'
27+ manual: False
28+ default: True
29+
2530library
2631 exposed-modules:
2732 Deriving.OpenApi
@@ -47,9 +52,13 @@ library
4752 ghc-options: -Weverything -Wno-star-is-type -Wno-unsafe -Wno-prepositive-qualified-module -Wno-safe -Wno-missing-safe-haskell-mode -Wno-missing-import-lists -Wno-implicit-prelude
4853 build-depends:
4954 aeson
50− , base >=4.12
51− , deriving-aeson >=0.2.2
55+ , base
56+ , deriving-aeson
5257 , lens
5358 , openapi3
5459 , text
60+ if flag(servant-description)
61+ cpp-options: -DSERVANT_DESCRIPTION
62+ build-depends:
63+ servant
5564 default-language: Haskell2010