Skip to content

Commit dc7afaa

Browse files
authored
Re-style imports and pragmas with stylish-haskell (#417)
1 parent b73381e commit dc7afaa

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Data/HashMap/Internal.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ import Control.Applicative (Const (..))
144144
import Control.DeepSeq (NFData (..), NFData1 (..), NFData2 (..))
145145
import Control.Monad.ST (ST, runST)
146146
import Data.Bifoldable (Bifoldable (..))
147-
import Data.Bits (complement, popCount, unsafeShiftL,
148-
unsafeShiftR, (.&.), (.|.), countTrailingZeros, shiftL)
147+
import Data.Bits (complement, countTrailingZeros, popCount,
148+
shiftL, unsafeShiftL, unsafeShiftR, (.&.),
149+
(.|.))
149150
import Data.Coerce (coerce)
150151
import Data.Data (Constr, Data (..), DataType)
151152
import Data.Functor.Classes (Eq1 (..), Eq2 (..), Ord1 (..), Ord2 (..),

Data/HashMap/Internal/Array.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ import GHC.Exts (Int (..), SmallArray#, SmallMutableArray#,
9393
thawSmallArray#, unsafeCoerce#,
9494
unsafeFreezeSmallArray#, unsafeThawSmallArray#,
9595
writeSmallArray#)
96-
import qualified GHC.Exts as Exts
9796
import GHC.ST (ST (..))
9897
import Prelude hiding (all, filter, foldMap, foldl, foldr, length,
9998
map, read, traverse)
10099

100+
import qualified GHC.Exts as Exts
101101
import qualified Language.Haskell.TH.Syntax as TH
102102
#if defined(ASSERTS)
103103
import qualified Prelude

Data/HashSet/Internal.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ module Data.HashSet.Internal
9393
import Control.DeepSeq (NFData (..), NFData1 (..), liftRnf2)
9494
import Data.Data (Constr, Data (..), DataType)
9595
import Data.Functor.Classes
96-
import Data.HashMap.Internal (HashMap, equalKeys, equalKeys1, foldMapWithKey,
97-
foldlWithKey, foldrWithKey)
9896
import Data.Hashable (Hashable (hashWithSalt))
9997
import Data.Hashable.Lifted (Hashable1 (..), Hashable2 (..))
98+
import Data.HashMap.Internal (HashMap, equalKeys, equalKeys1, foldMapWithKey,
99+
foldlWithKey, foldrWithKey)
100100
import Data.Semigroup (Semigroup (..), stimesIdempotentMonoid)
101101
import Prelude hiding (filter, foldl, foldr, map, null)
102102
import Text.Read

tests/Properties/HashMapLazy.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{-# LANGUAGE CPP #-}
22
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
33
{-# OPTIONS_GHC -fno-warn-orphans #-} -- because of Arbitrary (HashMap k v)
4-
{-# LANGUAGE BangPatterns #-}
54

65
-- | Tests for the 'Data.HashMap.Lazy' module. We test functions by
76
-- comparing them to @Map@ from @containers@.

tests/Strictness.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ module Strictness (tests) where
88
import Control.Arrow (second)
99
import Control.Monad (guard)
1010
import Data.Foldable (foldl')
11-
import Data.HashMap.Strict (HashMap)
1211
import Data.Hashable (Hashable (hashWithSalt))
12+
import Data.HashMap.Strict (HashMap)
1313
import Data.Maybe (fromMaybe, isJust)
1414
import Test.ChasingBottoms.IsBottom
1515
import Test.QuickCheck (Arbitrary (arbitrary), Property, (.&&.),

0 commit comments

Comments
 (0)