[refactor] rewrite .cabal to use the common stanza

parent cd179f6d
...@@ -28,8 +28,36 @@ extra-source-files: ...@@ -28,8 +28,36 @@ extra-source-files:
source-repository head source-repository head
type: git type: git
location: https://gitlab.iscpif.fr/gargantext/crawlers/openalex location: https://gitlab.iscpif.fr/gargantext/crawlers/openalex
common defaults
default-extensions:
DataKinds
DeriveGeneric
DuplicateRecordFields
FlexibleContexts
FlexibleInstances
GADTs
GeneralizedNewtypeDeriving
ImportQualifiedPost
MultiParamTypeClasses
NamedFieldPuns
NoImplicitPrelude
OverloadedStrings
RankNTypes
RecordWildCards
StrictData
TypeOperators
default-language: Haskell2010
build-depends:
base >= 4.7 && < 5
, bytestring >= 0.11 && < 0.12
, cassava >= 0.5.3.0 && < 0.6
, conduit >= 1.3.5 && < 1.4
, protolude >= 0.3.3 && < 0.4
library library
import:
defaults
hs-source-dirs: hs-source-dirs:
src src
exposed-modules: exposed-modules:
...@@ -38,45 +66,25 @@ library ...@@ -38,45 +66,25 @@ library
OpenAlex.ServantClientLogging OpenAlex.ServantClientLogging
OpenAlex.Types OpenAlex.Types
OpenAlex.Utils OpenAlex.Utils
default-extensions:
DataKinds
DeriveGeneric
DuplicateRecordFields
FlexibleContexts
FlexibleInstances
GADTs
GeneralizedNewtypeDeriving
ImportQualifiedPost
MultiParamTypeClasses
NamedFieldPuns
NoImplicitPrelude
OverloadedStrings
RankNTypes
RecordWildCards
StrictData
TypeOperators
ghc-options: -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates -Wmissing-signatures -Wunused-binds -Wunused-imports -Werror ghc-options: -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates -Wmissing-signatures -Wunused-binds -Wunused-imports -Werror
build-depends: base >= 4.7 && < 5 build-depends:
, aeson >= 2.1.2 && < 2.2 aeson >= 2.1.2 && < 2.2
, binary >= 0.8.8 && < 0.9 , binary >= 0.8.8 && < 0.9
, bytestring >= 0.11 && < 0.12 , containers >= 0.6.5.1 && < 0.7
, cassava >= 0.5.3.0 && < 0.6 , http-client >= 0.7.13.1 && < 0.8
, conduit >= 1.3.5 && < 1.4 , http-client-tls >= 0.3.6.2 && < 0.4
, containers >= 0.6.5.1 && < 0.7 , http-conduit >= 2.3.8.2 && < 2.4
, http-client >= 0.7.13.1 && < 0.8 , scientific >= 0.3.7 && < 0.4
, http-client-tls >= 0.3.6.2 && < 0.4 , servant >= 0.19 && < 0.20
, http-conduit >= 2.3.8.2 && < 2.4 , servant-client >= 0.19 && < 0.20
, protolude >= 0.3.3 && < 0.4 , servant-client-core >= 0.19 && < 0.20
, scientific >= 0.3.7 && < 0.4 , text ^>= 2.0
, servant >= 0.19 && < 0.20 , time >= 1.9.3 && < 1.10
, servant-client >= 0.19 && < 0.20 , vector >= 0.13 && < 0.14
, servant-client-core >= 0.19 && < 0.20
, text ^>= 2.0
, time >= 1.9.3 && < 1.10
, vector >= 0.13 && < 0.14
default-language: Haskell2010
executable openalex-main executable openalex-main
import:
defaults
main-is: Main.hs main-is: Main.hs
-- Modules included in this executable, other than Main. -- Modules included in this executable, other than Main.
...@@ -84,31 +92,9 @@ executable openalex-main ...@@ -84,31 +92,9 @@ executable openalex-main
-- LANGUAGE extensions used by modules in this package. -- LANGUAGE extensions used by modules in this package.
-- other-extensions: -- other-extensions:
build-depends: base >=4.7 && < 5 build-depends:
, bytestring >= 0.11 && < 0.12 cassava-conduit >= 0.6.5 && < 0.7
, cassava >= 0.5.3.0 && < 0.6 , optparse-simple >= 0.1.1.4 && < 0.2
, cassava-conduit >= 0.6.5 && < 0.7
, conduit >= 1.3.5 && < 1.4
, optparse-simple >= 0.1.1.4 && < 0.2
, protolude >= 0.3.3 && < 0.4
, openalex , openalex
hs-source-dirs: app hs-source-dirs: app
default-language: Haskell2010
default-extensions:
DataKinds
DeriveGeneric
DuplicateRecordFields
FlexibleContexts
FlexibleInstances
GADTs
GeneralizedNewtypeDeriving
ImportQualifiedPost
MultiParamTypeClasses
NamedFieldPuns
NoImplicitPrelude
OverloadedStrings
RankNTypes
RecordWildCards
StrictData
TypeOperators
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment