diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
 # lzlib
 
+## 0.3.1.0
+
+  * Export `lZApiVersion`
+
 ## 0.3.0.5
 
   * `bracket` things better
diff --git a/lzlib.cabal b/lzlib.cabal
--- a/lzlib.cabal
+++ b/lzlib.cabal
@@ -1,6 +1,6 @@
 cabal-version:      1.18
 name:               lzlib
-version:            0.3.0.5
+version:            0.3.1.0
 license:            BSD3
 license-file:       LICENSE
 copyright:          Copyright: (c) 2019 Vanessa McHale
diff --git a/src/Codec/Lzip.hs b/src/Codec/Lzip.hs
--- a/src/Codec/Lzip.hs
+++ b/src/Codec/Lzip.hs
@@ -71,13 +71,11 @@
             lZDecompressClose decoder *>
             free buf
 
-    res <- bracket
+    BSL.fromChunks <$> bracket
         setup
         cleanup
         (\(decoder, buf, bufMax) -> loop decoder bss bufMax (buf, sz) mempty)
 
-    pure (BSL.fromChunks res)
-
     where
         loop :: LZDecoderPtr -> [BS.ByteString] -> Int -> (Ptr UInt8, Int) -> [BS.ByteString] -> IO [BS.ByteString]
         loop decoder bss maxSz (buf, bufSz) !acc = do
@@ -133,12 +131,10 @@
             lZCompressClose encoder *>
             free newBytes
 
-    res <- bracket
+    BSL.fromChunks <$> bracket
         setup
         cleanup
         (\(encoder, newBytes) -> loop encoder bss (newBytes, delta) 0 mempty)
-
-    pure (BSL.fromChunks res)
 
     where
         loop :: LZEncoderPtr -> [BS.ByteString] -> (Ptr UInt8, Int) -> Int -> [BS.ByteString] -> IO [BS.ByteString]
diff --git a/src/Codec/Lzip/Raw.chs b/src/Codec/Lzip/Raw.chs
--- a/src/Codec/Lzip/Raw.chs
+++ b/src/Codec/Lzip/Raw.chs
@@ -49,6 +49,8 @@
                       , lZDecompressMemberPosition
                       , lZDecompressTotalInSize
                       , lZDecompressTotalOutSize
+                      -- * Macros
+                      , lZApiVersion
                       ) where
 
 import Foreign.C.Types
@@ -56,6 +58,10 @@
 
 #include <stdint.h>
 #include <lzlib.h>
+
+-- | @since 0.3.1.0
+lZApiVersion :: Integral a => a
+lZApiVersion = {# const LZ_API_VERSION #}
 
 type UInt8 = {# type uint8_t #}
 {#typedef uint8_t UInt8#}
diff --git a/stack.yaml b/stack.yaml
--- a/stack.yaml
+++ b/stack.yaml
@@ -1,5 +1,5 @@
 ---
-resolver: lts-14.17
+resolver: lts-14.18
 ghc-options: {"$locals": -ddump-to-file -ddump-hi}
 packages:
   - '.'
