Move the [] definition from base into ghc-prim:GHC.Types
authorIan Lynagh <igloo@earth.li>
Tue, 5 Aug 2008 18:19:09 +0000 (18:19 +0000)
committerIan Lynagh <igloo@earth.li>
Tue, 5 Aug 2008 18:19:09 +0000 (18:19 +0000)
GHC/Types.hs [new file with mode: 0644]
ghc-prim.cabal

diff --git a/GHC/Types.hs b/GHC/Types.hs
new file mode 100644 (file)
index 0000000..981cbfc
--- /dev/null
@@ -0,0 +1,9 @@
+
+{-# OPTIONS_GHC -XNoImplicitPrelude #-}
+
+module GHC.Types where
+
+infixr 5 :
+
+data [] a = [] | a : [a]
+
index 0ef7a17..85811ce 100644 (file)
@@ -18,6 +18,7 @@ Library {
         GHC.IntWord32
         GHC.IntWord64
         GHC.Tuple
+        GHC.Types
         GHC.Unit
     c-sources:
         cbits/longlong.c