[refactor] rewrite .cabal to use the common stanza

parent cd179f6d
...@@ -29,15 +29,7 @@ source-repository head ...@@ -29,15 +29,7 @@ source-repository head
type: git type: git
location: https://gitlab.iscpif.fr/gargantext/crawlers/openalex location: https://gitlab.iscpif.fr/gargantext/crawlers/openalex
library common defaults
hs-source-dirs:
src
exposed-modules:
OpenAlex
OpenAlex.Client
OpenAlex.ServantClientLogging
OpenAlex.Types
OpenAlex.Utils
default-extensions: default-extensions:
DataKinds DataKinds
DeriveGeneric DeriveGeneric
...@@ -55,18 +47,33 @@ library ...@@ -55,18 +47,33 @@ library
RecordWildCards RecordWildCards
StrictData StrictData
TypeOperators TypeOperators
ghc-options: -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates -Wmissing-signatures -Wunused-binds -Wunused-imports -Werror default-language: Haskell2010
build-depends: base >= 4.7 && < 5 build-depends:
, aeson >= 2.1.2 && < 2.2 base >= 4.7 && < 5
, binary >= 0.8.8 && < 0.9
, bytestring >= 0.11 && < 0.12 , bytestring >= 0.11 && < 0.12
, cassava >= 0.5.3.0 && < 0.6 , cassava >= 0.5.3.0 && < 0.6
, conduit >= 1.3.5 && < 1.4 , conduit >= 1.3.5 && < 1.4
, protolude >= 0.3.3 && < 0.4
library
import:
defaults
hs-source-dirs:
src
exposed-modules:
OpenAlex
OpenAlex.Client
OpenAlex.ServantClientLogging
OpenAlex.Types
OpenAlex.Utils
ghc-options: -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates -Wmissing-signatures -Wunused-binds -Wunused-imports -Werror
build-depends:
aeson >= 2.1.2 && < 2.2
, binary >= 0.8.8 && < 0.9
, containers >= 0.6.5.1 && < 0.7 , containers >= 0.6.5.1 && < 0.7
, http-client >= 0.7.13.1 && < 0.8 , http-client >= 0.7.13.1 && < 0.8
, http-client-tls >= 0.3.6.2 && < 0.4 , http-client-tls >= 0.3.6.2 && < 0.4
, http-conduit >= 2.3.8.2 && < 2.4 , http-conduit >= 2.3.8.2 && < 2.4
, protolude >= 0.3.3 && < 0.4
, scientific >= 0.3.7 && < 0.4 , scientific >= 0.3.7 && < 0.4
, servant >= 0.19 && < 0.20 , servant >= 0.19 && < 0.20
, servant-client >= 0.19 && < 0.20 , servant-client >= 0.19 && < 0.20
...@@ -74,9 +81,10 @@ library ...@@ -74,9 +81,10 @@ library
, text ^>= 2.0 , text ^>= 2.0
, time >= 1.9.3 && < 1.10 , time >= 1.9.3 && < 1.10
, vector >= 0.13 && < 0.14 , 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
, cassava-conduit >= 0.6.5 && < 0.7
, conduit >= 1.3.5 && < 1.4
, optparse-simple >= 0.1.1.4 && < 0.2 , 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