packages feed

biostockholm 0.3.1 → 0.3.2

raw patch · 2 files changed

+13/−13 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

biostockholm.cabal view
@@ -1,5 +1,5 @@ Name:                biostockholm-Version:             0.3.1+Version:             0.3.2 Synopsis:            Parsing and rendering of Stockholm files (used by Pfam, Rfam and Infernal). License:             BSD3 License-file:        LICENSE
src/Bio/Sequence/Stockholm.hs view
@@ -27,7 +27,7 @@       -- * Printing     , renderStockholm -      -- * Lazy I/O+      -- * Lazy ByteStrings     , lazyParseStockholm     , lazyRenderStockholm     )@@ -43,7 +43,6 @@  -- from conduit import qualified Data.Conduit as C-import qualified Data.Conduit.Lazy as CZ import qualified Data.Conduit.List as CL  -- from this package@@ -76,27 +75,28 @@ renderStockholm = renderDoc C.=$= renderEvents  --- | Use lazy I/O to parse a stream of files in Stockholm 1.0--- format.  We recommend using 'parseStockholm'.+-- | Strictly parse a stream of files in Stockholm 1.0 format+-- from a lazy 'B.ByteString'.  We recommend using+-- 'parseStockholm'. lazyParseStockholm :: L.ByteString -> [Stockholm] lazyParseStockholm lbs =     unsafePerformIO $     C.runResourceT $-      CZ.lazyConsume $-        CL.sourceList (L.toChunks lbs) C.$=-        parseStockholm+      CL.sourceList (L.toChunks lbs) C.$=+      parseStockholm C.$$+      CL.consume {-# NOINLINE lazyParseStockholm #-}  --- | Use lazy I/O to render a list of 'Stockholm'@s@ into a--- stream of files in Stockholm 1.0 format.  We recommend using+-- | Strictly render a list of 'Stockholm'@s@ into a lazy+-- 'ByteString' in Stockholm 1.0 format.  We recommend using -- 'renderStockholm'. lazyRenderStockholm :: [Stockholm] -> L.ByteString lazyRenderStockholm stos =     L.fromChunks $     unsafePerformIO $     C.runResourceT $-     CZ.lazyConsume $-       CL.sourceList stos C.$=-       renderStockholm+     CL.sourceList stos C.$=+     renderStockholm C.$$+     CL.consume {-# NOINLINE lazyRenderStockholm #-}