]> Git — Sourcephile - gargantext.git/commit
Simplify ExternalAPIs type
authorAlfredo Di Napoli <alfredo@well-typed.com>
Mon, 22 May 2023 13:18:30 +0000 (15:18 +0200)
committerAlfredo Di Napoli <alfredo@well-typed.com>
Mon, 12 Jun 2023 05:43:12 +0000 (07:43 +0200)
commitb3fb1a1697d18777af6b401c132c39a5c905e129
treeb84ff54381bf6ef72d4fd7926479d8937a0f6dd0
parentb0ca0a6a6a70fcb9cdb2edfa46c8991a8e5f7fcd
Simplify ExternalAPIs type

This commit simplifies the `ExternalAPIs` type, which is now a pure
enumeration, moving the lookup of the Pubmed key at the usage sites.
This simplified the code quite a bit, and made some otherwise-effectful
functions pure.
src/Gargantext/API/Admin/Orchestrator/Types.hs
src/Gargantext/API/Node/Corpus/New.hs
src/Gargantext/API/Node/Corpus/Types.hs
src/Gargantext/Core/Text/Corpus/API.hs
src/Gargantext/Core/Text/Corpus/API/Pubmed.hs
src/Gargantext/Database/Action/Flow.hs
src/Gargantext/Database/Query/Table/Node.hs