[license] fix licensing for the project

parent 234ad423
This diff is collapsed.
cabal-version: 1.12 cabal-version: 2.2
-- 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/gitlab/crawlerPubMed/issues ...@@ -12,7 +12,7 @@ bug-reports: https://github.com/gitlab/crawlerPubMed/issues
author: CNRS Gargantext author: CNRS Gargantext
maintainer: contact@gargantext.org maintainer: contact@gargantext.org
copyright: 2019 CNRS/IMT copyright: 2019 CNRS/IMT
license: BSD3 license: AGPL-3.0-or-later
license-file: LICENSE license-file: LICENSE
build-type: Simple build-type: Simple
extra-source-files: extra-source-files:
...@@ -32,6 +32,8 @@ library ...@@ -32,6 +32,8 @@ library
PUBMED.Types PUBMED.Types
other-modules: other-modules:
Paths_crawlerPubMed Paths_crawlerPubMed
autogen-modules:
Paths_crawlerPubMed
hs-source-dirs: hs-source-dirs:
src src
default-extensions: default-extensions:
...@@ -108,6 +110,8 @@ test-suite crawlerPubMed-test ...@@ -108,6 +110,8 @@ test-suite crawlerPubMed-test
main-is: Spec.hs main-is: Spec.hs
other-modules: other-modules:
Paths_crawlerPubMed Paths_crawlerPubMed
autogen-modules:
Paths_crawlerPubMed
hs-source-dirs: hs-source-dirs:
test test
default-extensions: default-extensions:
......
name: crawlerPubMed name: crawlerPubMed
version: 0.1.0.0 version: 0.1.0.0
github: "gitlab/crawlerPubMed" github: "gitlab/crawlerPubMed"
license: BSD3 license: AGPL-3.0-or-later
author: "CNRS Gargantext" author: "CNRS Gargantext"
maintainer: "contact@gargantext.org" maintainer: "contact@gargantext.org"
copyright: "2019 CNRS/IMT" copyright: "2019 CNRS/IMT"
......
{-|
Module : PUBMED
Description : PubMed API integration
Copyright : (c) CNRS, 2019
License : AGPL + CECILL v3
Maintainer : team@gargantext.org
Stability : experimental
Portability : POSIX
-}
module PUBMED where module PUBMED where
import Conduit import Conduit
...@@ -71,10 +82,10 @@ getMetadataWithC = do ...@@ -71,10 +82,10 @@ getMetadataWithC = do
getPage :: Offset getPage :: Offset
-> Env [PubMed] -> Env [PubMed]
getPage pageNum = do getPage pageNum = do
(Config { perPage = mPerPage, query }) <- ask (Config { apiKey, perPage = mPerPage, query }) <- ask
let perPage = fromMaybe defaultPerPage mPerPage let perPage = fromMaybe defaultPerPage mPerPage
let offset = fromIntegral $ pageNum * perPage let offset = fromIntegral $ pageNum * perPage
liftIO $ print $ "[getPage] getting page " <> show pageNum <> ", offset: " <> show offset <> ", perPage: " <> show perPage <> ", query: " <> T.unpack query liftIO $ print $ "[getPage] getting page " <> show pageNum <> ", offset: " <> show offset <> ", perPage: " <> show perPage <> ", query: " <> T.unpack query <> ", apiKey: " <> show apiKey
eDocs <- runSimpleFindPubmedAbstractRequest (Just offset) eDocs <- runSimpleFindPubmedAbstractRequest (Just offset)
case eDocs of case eDocs of
Left err -> panic $ "[getPage] error: " <> show err Left err -> panic $ "[getPage] error: " <> show err
......
{-|
Module : PUBMED.Client
Description : PubMed API integration
Copyright : (c) CNRS, 20198
License : AGPL + CECILL v3
Maintainer : team@gargantext.org
Stability : experimental
Portability : POSIX
-}
module PUBMED.Client where module PUBMED.Client where
import Data.ByteString.Lazy (ByteString) import Data.ByteString.Lazy (ByteString)
......
{-# LANGUAGE LambdaCase #-} {-# LANGUAGE LambdaCase #-}
{-|
Module : PUBMED.Parser
Description : PubMed API integration
Copyright : (c) CNRS, 20198
License : AGPL + CECILL v3
Maintainer : team@gargantext.org
Stability : experimental
Portability : POSIX
-}
module PUBMED.Parser where module PUBMED.Parser where
import Control.Lens ((^?), (^.), (^..), only, to, ix, prism', Prism', Traversal') import Control.Lens ((^?), (^.), (^..), only, to, ix, prism', Prism', Traversal')
......
{-|
Module : PUBMED.ServantClientLogging
Description : PubMed API integration
Copyright : (c) CNRS, 20198
License : AGPL + CECILL v3
Maintainer : team@gargantext.org
Stability : experimental
Portability : POSIX
-}
module PUBMED.ServantClientLogging where module PUBMED.ServantClientLogging where
import qualified Data.Binary.Builder as DBB import qualified Data.Binary.Builder as DBB
......
{-|
Module : PUBMED.Types
Description : PubMed API integration
Copyright : (c) CNRS, 20198
License : AGPL + CECILL v3
Maintainer : team@gargantext.org
Stability : experimental
Portability : POSIX
-}
module PUBMED.Types where module PUBMED.Types where
import Control.Monad.Reader (ReaderT) import Control.Monad.Reader (ReaderT)
......
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