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