[commit: packages/containers] master: Use fromList2 to implement fromListN in IsList (ace8f7f)

git at git.haskell.org git at git.haskell.org
Sun Dec 20 16:23:34 UTC 2015


Repository : ssh://git@git.haskell.org/containers

On branch  : master
Link       : http://git.haskell.org/packages/containers.git/commitdiff/ace8f7fd88e5458a8401804e32a2d921d653fdfa

>---------------------------------------------------------------

commit ace8f7fd88e5458a8401804e32a2d921d653fdfa
Author: David Feuer <David.Feuer at gmail.com>
Date:   Fri Dec 19 15:09:03 2014 -0500

    Use fromList2 to implement fromListN in IsList


>---------------------------------------------------------------

ace8f7fd88e5458a8401804e32a2d921d653fdfa
 Data/Sequence.hs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Data/Sequence.hs b/Data/Sequence.hs
index 7d31f79..b216b12 100644
--- a/Data/Sequence.hs
+++ b/Data/Sequence.hs
@@ -1806,6 +1806,7 @@ fromList = Seq . mkTree 1 . map_elem
 instance GHC.Exts.IsList (Seq a) where
     type Item (Seq a) = a
     fromList = fromList
+    fromListN = fromList2
     toList = toList
 #endif
 



More information about the ghc-commits mailing list