git.iko.soy/deriving-openapi3
on master help sign in
.github/workflows/build.yaml+2−2
since splitsnapshots
unifiedsplit
@@ -17,7 +17,7 @@ jobs:
17 - name: Check library version
17 - name: Check library version
18 if: github.event_name == 'release'
18 if: github.event_name == 'release'
19 run: |
19 run: |
20− if [ "$(yq eval ".version" package.yaml)" != "${{ github.event.release.tag_name }}" ]; then
20+ if [ "$(awk -F":" '{if ($1 == "version") {gsub(/ /, "", $2); print $2}}' *.cabal)" != "${{ github.event.release.tag_name }}" ]; then
21 echo "::error file=action.yaml::Library version does not match release version."
21 echo "::error file=action.yaml::Library version does not match release version."
22 exit 1
22 exit 1
23 fi
23 fi
@@ -33,7 +33,7 @@ jobs:
33 path: |
33 path: |
34 ~/.stack
34 ~/.stack
35 .stack-work
35 .stack-work
36− key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }}
36+ key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}-${{ hashFiles('**.cabal') }}
37 restore-keys: |
37 restore-keys: |
38 ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}
38 ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}
39 ${{ runner.os }}-stack
39 ${{ runner.os }}-stack
deriving-openapi3.cabal+3−12
@@ -5,7 +5,7 @@ cabal-version: 1.12
5-- see: https://github.com/sol/hpack
5-- see: https://github.com/sol/hpack
6
6
7name: deriving-openapi3
7name: deriving-openapi3
8−version: 0.1.0.1
8+version: 0.1.0.0
9synopsis: DerivingVia for OpenAPI 3
9synopsis: DerivingVia for OpenAPI 3
10description: DerivingVia for OpenAPI 3
10description: DerivingVia for OpenAPI 3
11category: JSON, Generics, OpenAPI
11category: JSON, Generics, OpenAPI
@@ -22,11 +22,6 @@ source-repository head
22 type: git
22 type: git
23 location: https://github.com/ilyakooo0/deriving-openapi3
23 location: https://github.com/ilyakooo0/deriving-openapi3
24
24
25−flag servant-description
26− description: Create instances for the 'Description' type from 'servant'
27− manual: False
28− default: True
29−
30library
25library
31 exposed-modules:
26 exposed-modules:
32 Deriving.OpenApi
27 Deriving.OpenApi
@@ -52,13 +47,9 @@ library
52 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
47 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
53 build-depends:
48 build-depends:
54 aeson
49 aeson
55− , base
50+ , base >=4.12
56− , deriving-aeson
51+ , deriving-aeson >=0.2.2
57 , lens
52 , lens
58 , openapi3
53 , openapi3
59 , text
54 , text
60− if flag(servant-description)
61− cpp-options: -DSERVANT_DESCRIPTION
62− build-depends:
63− servant
64 default-language: Haskell2010
55 default-language: Haskell2010