From ae5d17ce5c2bdae2fcf14c51e8abbb35bba1ead1 Mon Sep 17 00:00:00 2001 From: Andrew Martin Date: Wed, 20 Nov 2019 14:35:49 -0500 Subject: [PATCH] Sort imports. Add release date to changelog. --- CHANGELOG.md | 2 +- src/Data/ByteArray/Builder.hs | 6 +++--- src/Data/ByteArray/Builder/Bounded.hs | 4 ++-- src/Data/ByteArray/Builder/Bounded/Unsafe.hs | 6 +++--- src/Data/ByteArray/Builder/Unsafe.hs | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 771ae75..7cb0632 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Revision history for small-bytearray-builder -## 0.3.1.0 -- 2019-??-?? +## 0.3.1.0 -- 2019-11-20 * Add big-endian and little-endian parsers for `Word128`. This includes both the single and multiple element variants. diff --git a/src/Data/ByteArray/Builder.hs b/src/Data/ByteArray/Builder.hs index a77117b..b951442 100644 --- a/src/Data/ByteArray/Builder.hs +++ b/src/Data/ByteArray/Builder.hs @@ -119,11 +119,11 @@ import GHC.ST (ST(ST)) import qualified Arithmetic.Nat as Nat import qualified Arithmetic.Types as Arithmetic -import qualified GHC.Exts as Exts -import qualified Data.Text.Short as TS -import qualified Data.Primitive as PM import qualified Data.ByteArray.Builder.Bounded as Bounded import qualified Data.ByteArray.Builder.Bounded.Unsafe as UnsafeBounded +import qualified Data.Primitive as PM +import qualified Data.Text.Short as TS +import qualified GHC.Exts as Exts -- | Run a builder. run :: diff --git a/src/Data/ByteArray/Builder/Bounded.hs b/src/Data/ByteArray/Builder/Bounded.hs index 8f8966c..fb1e843 100644 --- a/src/Data/ByteArray/Builder/Bounded.hs +++ b/src/Data/ByteArray/Builder/Bounded.hs @@ -90,9 +90,9 @@ import GHC.ST (ST(ST)) import GHC.TypeLits (type (+)) import GHC.Word (Word8(W8#),Word16(W16#),Word32(W32#),Word64(W64#)) -import qualified Arithmetic.Types as Arithmetic -import qualified Arithmetic.Nat as Nat import qualified Arithmetic.Lte as Lte +import qualified Arithmetic.Nat as Nat +import qualified Arithmetic.Types as Arithmetic import qualified Data.ByteArray.Builder.Bounded.Unsafe as Unsafe import qualified Data.Primitive as PM diff --git a/src/Data/ByteArray/Builder/Bounded/Unsafe.hs b/src/Data/ByteArray/Builder/Bounded/Unsafe.hs index 5d5e58c..42abc28 100644 --- a/src/Data/ByteArray/Builder/Bounded/Unsafe.hs +++ b/src/Data/ByteArray/Builder/Bounded/Unsafe.hs @@ -16,12 +16,12 @@ module Data.ByteArray.Builder.Bounded.Unsafe , pasteIO ) where -import GHC.TypeLits (Nat) import Data.Kind (Type) +import Data.Primitive (MutableByteArray(..)) +import GHC.Exts (Int(I#),RealWorld,Int#,State#,MutableByteArray#) import GHC.IO (stToIO) import GHC.ST (ST(ST)) -import GHC.Exts (Int(I#),RealWorld,Int#,State#,MutableByteArray#) -import Data.Primitive (MutableByteArray(..)) +import GHC.TypeLits (Nat) -- | A builder parameterized by the maximum number of bytes it uses -- when executed. diff --git a/src/Data/ByteArray/Builder/Unsafe.hs b/src/Data/ByteArray/Builder/Unsafe.hs index 4cba197..c4e8640 100644 --- a/src/Data/ByteArray/Builder/Unsafe.hs +++ b/src/Data/ByteArray/Builder/Unsafe.hs @@ -33,10 +33,10 @@ import GHC.Exts (Addr#,ByteArray#,MutableByteArray#,Int(I#),Ptr(Ptr)) import GHC.Exts (IsString,Int#,State#) import GHC.ST (ST(ST)) -import qualified GHC.Exts as Exts import qualified Data.ByteArray.Builder.Bounded as Bounded import qualified Data.ByteArray.Builder.Bounded.Unsafe as UnsafeBounded import qualified Data.Primitive as PM +import qualified GHC.Exts as Exts -- | An unmaterialized sequence of bytes that may be pasted -- into a mutable byte array.