From 6098f9bd910fdbae4f4c68a5cc0448968988dda8 Mon Sep 17 00:00:00 2001 From: Andrew Martin Date: Fri, 12 Jun 2020 15:47:13 -0400 Subject: [PATCH] Improve compatibility with primitive again --- src/Data/Bytes/Builder/Bounded.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Data/Bytes/Builder/Bounded.hs b/src/Data/Bytes/Builder/Bounded.hs index 12d51ce..5a2c876 100644 --- a/src/Data/Bytes/Builder/Bounded.hs +++ b/src/Data/Bytes/Builder/Bounded.hs @@ -105,7 +105,8 @@ import Control.Monad.ST.Run (runByteArrayST) import Data.Bits import Data.Bytes.Builder.Bounded.Unsafe (Builder(..)) import Data.Char (ord) -import Data.Primitive +import Data.Primitive (MutableByteArray(..),ByteArray,writeByteArray) +import Data.Primitive (readByteArray,newByteArray,unsafeFreezeByteArray) import Data.Primitive.ByteArray.Offset (MutableByteArrayOffset(..)) import Data.WideWord (Word128(Word128),Word256(Word256)) import GHC.Exts