EntrezHTTP 1.0.1 → 1.0.2
raw patch · 2 files changed
+6/−5 lines, 2 filesdep +textdep ~Taxonomydep ~transformers
Dependencies added: text
Dependency ranges changed: Taxonomy, transformers
Files
- EntrezHTTP.cabal +4/−4
- src/Bio/EntrezHTTP.hs +2/−1
EntrezHTTP.cabal view
@@ -7,7 +7,7 @@ -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change-version: 1.0.1+version: 1.0.2 synopsis: Libary to interface with the NCBI Entrez REST service. description: EntrezHTTP provides functions to query the NCBI entrez REST interface. .@@ -37,8 +37,8 @@ source-repository this type: darcs- location: https://github.com/eggzilla/EntrezHTTP/tree/v1.0.1- tag: v1.0.1+ location: https://github.com/eggzilla/EntrezHTTP/tree/v1.0.2+ tag: v1.0.2 library -- Modules exported by the library.@@ -50,7 +50,7 @@ -- compiler options: ghc-options: -Wall -O2 -- Other library packages from which modules are imported.- build-depends: base >=4.5 && <5, transformers >= 0.4 && <0.5, bytestring, conduit, HTTP, http-conduit, hxt, network, mtl, biocore, Taxonomy+ build-depends: base >=4.5 && <5, transformers, bytestring, conduit, HTTP, http-conduit, hxt, network, mtl, biocore, Taxonomy>=1.0.2, text -- Directories containing source files. hs-source-dirs: src
src/Bio/EntrezHTTP.hs view
@@ -48,6 +48,7 @@ import Bio.TaxonomyData --(Rank,SimpleTaxon) import qualified Data.ByteString.Char8 as B import Network.HTTP.Base+import qualified Data.Text.Lazy as TL -- | Send query and parse return XML startSession :: String -> String -> String -> IO String@@ -188,7 +189,7 @@ simple_Rank <- atTag "Rank" >>> getChildren >>> getText -< entrezSimpleTaxon returnA -< SimpleTaxon { simpleTaxId = read simple_TaxId :: Int,- simpleScientificName = B.pack simple_ScientificName,+ simpleScientificName = TL.pack simple_ScientificName, simpleParentTaxId = read simple_ParentTaxId :: Int, simpleRank = read simple_Rank :: Rank }