diff --git a/Codec/Compression/Snappy/Lazy.hsc b/Codec/Compression/Snappy/Lazy.hsc
index 405c02e..ef5abdb 100644
--- a/Codec/Compression/Snappy/Lazy.hsc
+++ b/Codec/Compression/Snappy/Lazy.hsc
@@ -31,7 +31,7 @@ module Codec.Compression.Snappy.Lazy
import Codec.Compression.Snappy.Internal (check, maxCompressedLength)
import Control.Exception (bracket)
-import Data.ByteString.Internal hiding (ByteString)
+import Data.ByteString.Internal hiding (ByteString, BS)
import Data.ByteString.Lazy.Internal (ByteString(..))
import Data.Word (Word8, Word32)
import Foreign.C.Types (CInt(..), CSize(..))
diff --git a/snappy.cabal b/snappy.cabal
index 27510ba..649cd3e 100644
--- a/snappy.cabal
+++ b/snappy.cabal
@@ -1,3 +1,4 @@
+cabal-version: 2.2
name: snappy
version: 0.2.0.2
homepage: http://github.com/bos/snappy
@@ -7,14 +8,13 @@ synopsis:
description:
This library provides fast, pure Haskell bindings to Google's Snappy
compression and decompression library:
-license: BSD3
+license: BSD-3-Clause
license-file: LICENSE
author: Bryan O'Sullivan
maintainer: Bryan O'Sullivan
copyright: Copyright 2011 MailRank, Inc.
category: Codec, Compression
build-type: Simple
-cabal-version: >= 1.8
extra-source-files:
README.md
include/hs_snappy.h
@@ -23,11 +23,11 @@ extra-source-files:
tests/Speedy.hs
library
- c-sources: cbits/hs_snappy.cpp
+ cxx-sources: cbits/hs_snappy.cpp
include-dirs: include
extra-libraries: snappy stdc++
- cc-options: -Wall
+ cxx-options: -Wall -std=c++11
ghc-options: -Wall
build-depends: base < 5, bytestring