[refactor] update .cabal file

parent 618f711a
with-compiler: ghc-9.4.7
packages:
./
cabal-version: 2.0 cabal-version: 3.4
-- This file has been generated from package.yaml by hpack version 0.35.2. -- This file has been generated from package.yaml by hpack version 0.35.2.
-- --
...@@ -12,7 +12,7 @@ bug-reports: https://github.com/githubuser/gargantext-prelude/issues ...@@ -12,7 +12,7 @@ bug-reports: https://github.com/githubuser/gargantext-prelude/issues
author: Team Hello Word / CNRS author: Team Hello Word / CNRS
maintainer: team@gargantext.org maintainer: team@gargantext.org
copyright: 2021 HW/CNRS/Alexandre Delanoë copyright: 2021 HW/CNRS/Alexandre Delanoë
license: AGPL-3 license: AGPL-3.0-or-later
license-file: LICENSE license-file: LICENSE
build-type: Simple build-type: Simple
extra-source-files: extra-source-files:
...@@ -23,7 +23,35 @@ source-repository head ...@@ -23,7 +23,35 @@ source-repository head
type: git type: git
location: https://github.com/githubuser/gargantext-prelude location: https://github.com/githubuser/gargantext-prelude
-- common options
-- https://vrom911.github.io/blog/common-stanzas
common defaults
default-extensions:
DataKinds
DeriveGeneric
FlexibleContexts
FlexibleInstances
GADTs
GeneralizedNewtypeDeriving
ImportQualifiedPost
MultiParamTypeClasses
NamedFieldPuns
NoImplicitPrelude
OverloadedStrings
RankNTypes
RecordWildCards
StrictData
default-language: Haskell2010
build-depends:
base >=4.7 && <5
, aeson ^>= 2.2.1.0
, lens >= 5.2.2 && < 5.3
, postgresql-simple ^>= 0.6.4
, template-haskell >= 2.16.0.0 && < 2.22
library library
import:
defaults
exposed-modules: exposed-modules:
Gargantext.Prelude Gargantext.Prelude
Gargantext.Prelude.Clock Gargantext.Prelude.Clock
...@@ -47,25 +75,9 @@ library ...@@ -47,25 +75,9 @@ library
Paths_gargantext_prelude Paths_gargantext_prelude
hs-source-dirs: hs-source-dirs:
src src
default-extensions:
DataKinds
DeriveGeneric
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
ImportQualifiedPost
MultiParamTypeClasses
NamedFieldPuns
NoImplicitPrelude
OverloadedStrings
RankNTypes
RecordWildCards
StrictData
build-depends: build-depends:
MonadRandom MonadRandom
, SHA , SHA
, aeson
, base >=4.7 && <5
, binary , binary
, bytestring , bytestring
, cipher-aes , cipher-aes
...@@ -79,7 +91,6 @@ library ...@@ -79,7 +91,6 @@ library
, filepath , filepath
, formatting , formatting
, ini , ini
, lens
, located-base , located-base
, memory , memory
, mime-mail , mime-mail
...@@ -87,7 +98,6 @@ library ...@@ -87,7 +98,6 @@ library
, network , network
, network-uri , network-uri
, password , password
, postgresql-simple ^>= 0.6.4
, protolude , protolude
, qrcode-core , qrcode-core
, qrcode-juicypixels , qrcode-juicypixels
...@@ -100,34 +110,19 @@ library ...@@ -100,34 +110,19 @@ library
, transformers , transformers
, transformers-base , transformers-base
, vector , vector
default-language: Haskell2010
executable gargantext-prelude-exe executable gargantext-prelude-exe
import:
defaults
main-is: Main.hs main-is: Main.hs
other-modules: other-modules:
Paths_gargantext_prelude Paths_gargantext_prelude
hs-source-dirs: hs-source-dirs:
app app
default-extensions:
DataKinds
DeriveGeneric
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
ImportQualifiedPost
MultiParamTypeClasses
NamedFieldPuns
NoImplicitPrelude
OverloadedStrings
RankNTypes
RecordWildCards
StrictData
ghc-options: -threaded -rtsopts -with-rtsopts=-N ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends: build-depends:
MonadRandom MonadRandom
, SHA , SHA
, aeson
, base >=4.7 && <5
, binary , binary
, bytestring , bytestring
, cipher-aes , cipher-aes
...@@ -142,7 +137,6 @@ executable gargantext-prelude-exe ...@@ -142,7 +137,6 @@ executable gargantext-prelude-exe
, formatting , formatting
, gargantext-prelude , gargantext-prelude
, ini , ini
, lens
, located-base , located-base
, memory , memory
, mime-mail , mime-mail
...@@ -162,35 +156,20 @@ executable gargantext-prelude-exe ...@@ -162,35 +156,20 @@ executable gargantext-prelude-exe
, transformers , transformers
, transformers-base , transformers-base
, vector , vector
default-language: Haskell2010
test-suite gargantext-prelude-test test-suite gargantext-prelude-test
import:
defaults
type: exitcode-stdio-1.0 type: exitcode-stdio-1.0
main-is: Spec.hs main-is: Spec.hs
other-modules: other-modules:
Paths_gargantext_prelude Paths_gargantext_prelude
hs-source-dirs: hs-source-dirs:
test test
default-extensions:
DataKinds
DeriveGeneric
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
ImportQualifiedPost
MultiParamTypeClasses
NamedFieldPuns
NoImplicitPrelude
OverloadedStrings
RankNTypes
RecordWildCards
StrictData
ghc-options: -threaded -rtsopts -with-rtsopts=-N ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends: build-depends:
MonadRandom MonadRandom
, SHA , SHA
, aeson
, base >=4.7 && <5
, binary , binary
, bytestring , bytestring
, cipher-aes , cipher-aes
...@@ -205,7 +184,6 @@ test-suite gargantext-prelude-test ...@@ -205,7 +184,6 @@ test-suite gargantext-prelude-test
, formatting , formatting
, gargantext-prelude , gargantext-prelude
, ini , ini
, lens
, located-base , located-base
, memory , memory
, mime-mail , mime-mail
...@@ -225,4 +203,3 @@ test-suite gargantext-prelude-test ...@@ -225,4 +203,3 @@ test-suite gargantext-prelude-test
, transformers , transformers
, transformers-base , transformers-base
, vector , vector
default-language: Haskell2010
...@@ -19,13 +19,18 @@ module Gargantext.Prelude ...@@ -19,13 +19,18 @@ module Gargantext.Prelude
, module Data.String.Conversions , module Data.String.Conversions
, MonadBase(..) , MonadBase(..)
, module Gargantext.Prelude.Error , module Gargantext.Prelude.Error
, makeLenses, (^.), (.~)
, FromJSON(..), ToJSON(..), fromJSON, toJSON, deriveJSON
) )
where where
-- TODO import functions optimized in Utils.Count -- TODO import functions optimized in Utils.Count
-- import Gargantext.Utils.Count -- import Gargantext.Utils.Count
import Control.Lens (makeLenses, (^.), (.~))
import Control.Monad qualified as M import Control.Monad qualified as M
import Control.Monad.Base (MonadBase(..)) import Control.Monad.Base (MonadBase(..))
import Data.Aeson (FromJSON(..), ToJSON(..), fromJSON, toJSON)
import Data.Aeson.TH (deriveJSON)
import Data.List qualified as L hiding (head, sum) import Data.List qualified as L hiding (head, sum)
import Data.Map.Strict (Map, lookup) import Data.Map.Strict (Map, lookup)
import Data.Map.Strict qualified as M import Data.Map.Strict qualified as M
......
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