File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 5
5
#if __GLASGOW_HASKELL__ >= 703
6
6
{-# LANGUAGE Trustworthy #-}
7
7
#endif
8
+ #if __GLASGOW_HASKELL__ >= 708
9
+ {-# LANGUAGE TypeFamilies #-}
10
+ #endif
8
11
-- We use cabal-generated MIN_VERSION_base to adapt to changes of base.
9
12
-- Nevertheless, as a convenience, we also allow compiling without cabal by
10
13
-- defining trivial MIN_VERSION_base if needed.
@@ -171,7 +174,9 @@ import Data.Coerce
171
174
#if MIN_VERSION_base(4,8,0)
172
175
import Data.Functor.Identity (Identity (.. ))
173
176
#endif
174
-
177
+ #if __GLASGOW_HASKELL__ >= 708
178
+ import qualified GHC.Exts
179
+ #endif
175
180
176
181
infixr 5 `consTree`
177
182
infixl 5 `snocTree`
@@ -1655,6 +1660,13 @@ findIndicesR p xs = foldlWithIndex g [] xs
1655
1660
fromList :: [a ] -> Seq a
1656
1661
fromList = Data.List. foldl' (|>) empty
1657
1662
1663
+ #if __GLASGOW_HASKELL__ >= 708
1664
+ instance GHC.Exts. IsList (Seq a ) where
1665
+ type Item (Seq a ) = a
1666
+ fromList = fromList
1667
+ toList = toList
1668
+ #endif
1669
+
1658
1670
------------------------------------------------------------------------
1659
1671
-- Reverse
1660
1672
------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments