summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefanor <>2018-02-24 23:49:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2018-02-24 23:49:00 (GMT)
commitea7ea14bf492699f11b29dd7b827b6491ff7a487 (patch)
treec612d4ad114d2e552055c60733f94c97be127c9e
parent0bb1fe58c5c1d0a81baaf7a5152f7df475c739bb (diff)
version 0.2.0.10.2.0.1
-rw-r--r--Redland/Util.hs4
-rw-r--r--redland.cabal2
2 files changed, 3 insertions, 3 deletions
diff --git a/Redland/Util.hs b/Redland/Util.hs
index e7ac295..0940cfc 100644
--- a/Redland/Util.hs
+++ b/Redland/Util.hs
@@ -212,8 +212,8 @@ streamToList stream = do
done <- streamEnd stream
if done
then pure []
- else do
- triple <- streamGetObject stream >>= statementToTriple
+ else withNew (streamGetObject stream) $ \statement -> do
+ triple <- statementToTriple statement
next <- streamNext stream
rest <- if next then streamToList stream else pure []
pure (triple : rest)
diff --git a/redland.cabal b/redland.cabal
index a6014cd..9661cf7 100644
--- a/redland.cabal
+++ b/redland.cabal
@@ -1,5 +1,5 @@
name: redland
-version: 0.2.0.0
+version: 0.2.0.1
synopsis: Redland RDF library bindings
description: This package provides low-level and mid-level
Redland RDF library bindings, as well as some