openalex.cabal 2.55 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
cabal-version:      2.4
name:               openalex
version:            0.1.0.0

-- A short (one-line) description of the package.
-- synopsis: An importer for OpenAlex database.

-- A longer description of the package.
-- description:

-- A URL where users can report bugs.
-- bug-reports: https://gitlab.iscpif.fr/gargantext/crawlers/openalex

-- The license under which the package is released.
-- license:
author:         Gargantext Team
maintainer:     team@gargantext.org

-- A copyright notice.
copyright:      Copyright: (c) 2023-Present: see git logs and README
license:        AGPL-3.0-or-later
license-file:   LICENSE
category: Data
extra-source-files:
    CHANGELOG.md
    README.md

source-repository head
  type: git
  location: https://gitlab.iscpif.fr/gargantext/crawlers/openalex
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57

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

58
library
59 60
    import:
      defaults
61 62 63 64 65 66 67
    hs-source-dirs:
        src
    exposed-modules:
      OpenAlex
      OpenAlex.Client
      OpenAlex.ServantClientLogging
      OpenAlex.Types
68
      OpenAlex.Utils
69
    ghc-options: -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates -Wmissing-signatures -Wunused-binds -Wunused-imports -Werror
70 71 72 73 74
    build-depends:
        aeson >= 2.1.2 && < 2.2
      , binary >= 0.8.8 && < 0.9
      , containers >= 0.6.5.1 && < 0.7
      , http-client >= 0.7.13.1 && < 0.8
75 76
      , http-client-tls == 0.3.6.1
      , http-conduit >= 2.3.8.1 && < 2.4
77
      , scientific >= 0.3.7 && < 0.4
78
      , servant >= 0.19 && < 0.21
79 80
      , servant-client >= 0.20 && < 0.21
      , servant-client-core >= 0.20 && < 0.21
81 82 83
      , text >= 2.0 && < 3
      , time >= 1.9.3 && < 1.13
      , vector >= 0.12.3 && < 0.14
84 85
    
executable openalex-main
86 87
    import:
      defaults
88 89 90 91 92 93 94
    main-is:          Main.hs

    -- Modules included in this executable, other than Main.
    -- other-modules:

    -- LANGUAGE extensions used by modules in this package.
    -- other-extensions:
95 96 97
    build-depends:
        cassava-conduit >= 0.6.5 && < 0.7
      , optparse-simple >= 0.1.1.4 && < 0.2
98

99
      , openalex
100
    hs-source-dirs:   app
101