git.iko.soy/deriving-openapi3
on af00daf help sign in
2 files changed+14−5
since splitsnapshots
unifiedsplit
.github/workflows/build.yaml+2−2 deriving-openapi3.cabal+12−3
.github/workflows/build.yaml+2−2
@@ -17,7 +17,7 @@ jobs:
1717 - name: Check library version
1818 if: github.event_name == 'release'
1919 run: |
20− if [ "$(awk -F":" '{if ($1 == "version") {gsub(/ /, "", $2); print $2}}' *.cabal)" != "${{ github.event.release.tag_name }}" ]; then
20+ if [ "$(yq eval ".version" package.yaml)" != "${{ github.event.release.tag_name }}" ]; then
2121 echo "::error file=action.yaml::Library version does not match release version."
2222 exit 1
2323 fi
@@ -33,7 +33,7 @@ jobs:
3333 path: |
3434 ~/.stack
3535 .stack-work
36− key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}-${{ hashFiles('**.cabal') }}
36+ key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }}
3737 restore-keys: |
3838 ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}
3939 ${{ runner.os }}-stack
deriving-openapi3.cabal+12−3
@@ -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