[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.
--
......@@ -12,7 +12,7 @@ bug-reports: https://github.com/gitlab/crawlerPubMed/issues
author: CNRS Gargantext
maintainer: contact@gargantext.org
copyright: 2019 CNRS/IMT
license: BSD3
license: AGPL-3.0-or-later
license-file: LICENSE
build-type: Simple
extra-source-files:
......@@ -32,6 +32,8 @@ library
PUBMED.Types
other-modules:
Paths_crawlerPubMed
autogen-modules:
Paths_crawlerPubMed
hs-source-dirs:
src
default-extensions:
......@@ -108,6 +110,8 @@ test-suite crawlerPubMed-test
main-is: Spec.hs
other-modules:
Paths_crawlerPubMed
autogen-modules:
Paths_crawlerPubMed
hs-source-dirs:
test
default-extensions:
......
name: crawlerPubMed
version: 0.1.0.0
github: "gitlab/crawlerPubMed"
license: BSD3
license: AGPL-3.0-or-later
author: "CNRS Gargantext"
maintainer: "contact@gargantext.org"
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
import Conduit
......@@ -71,10 +82,10 @@ getMetadataWithC = do
getPage :: Offset
-> Env [PubMed]
getPage pageNum = do
(Config { perPage = mPerPage, query }) <- ask
(Config { apiKey, perPage = mPerPage, query }) <- ask
let perPage = fromMaybe defaultPerPage mPerPage
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)
case eDocs of
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
import Data.ByteString.Lazy (ByteString)
......
{-# 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
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
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
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