We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82c1738 commit 725e18eCopy full SHA for 725e18e
containers/src/Data/Graph.hs
@@ -122,7 +122,7 @@ import Data.Array.Unboxed ( UArray )
122
#else
123
import qualified Data.Array as UA
124
#endif
125
-import Data.List
+import qualified Data.List as L
126
#if MIN_VERSION_base(4,9,0)
127
import Data.Functor.Classes
128
@@ -442,7 +442,7 @@ graphFromEdges edges0
442
where
443
max_v = length edges0 - 1
444
bounds0 = (0,max_v) :: (Vertex, Vertex)
445
- sorted_edges = sortBy lt edges0
+ sorted_edges = L.sortBy lt edges0
446
edges1 = zipWith (,) [0..] sorted_edges
447
448
graph = array bounds0 [(,) v (mapMaybe key_vertex ks) | (,) v (_, _, ks) <- edges1]
containers/src/Data/Sequence/Internal.hs
@@ -202,7 +202,6 @@ import Prelude hiding (
202
null, length, lookup, take, drop, splitAt, foldl, foldl1, foldr, foldr1,
203
scanl, scanl1, scanr, scanr1, replicate, zip, zipWith, zip3, zipWith3,
204
unzip, takeWhile, dropWhile, iterate, reverse, filter, mapM, sum, all)
205
-import qualified Data.List
206
import Control.Applicative (Applicative(..), (<$>), (<**>), Alternative,
207
liftA2, liftA3)
208
import qualified Control.Applicative as Applicative
@@ -212,6 +211,11 @@ import Data.Monoid (Monoid(..))
212
211
import Data.Functor (Functor(..))
213
import Utils.Containers.Internal.State (State(..), execState)
214
import Data.Foldable (Foldable(foldl, foldl1, foldr, foldr1, foldMap, foldl', foldr'), toList)
+import qualified Data.Foldable as F
215
+
216
+#if !(__GLASGOW_HASKELL__ >= 708)
217
+import qualified Data.List
218
+#endif
219
220
221
import qualified Data.Semigroup as Semigroup
0 commit comments