From 3709a32fc03bc0de69a34211ca32544405e43ae4 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Tue, 5 Aug 2008 18:19:09 +0000 Subject: [PATCH] Move the [] definition from base into ghc-prim:GHC.Types --- GHC/Types.hs | 9 +++++++++ ghc-prim.cabal | 1 + 2 files changed, 10 insertions(+) create mode 100644 GHC/Types.hs diff --git a/GHC/Types.hs b/GHC/Types.hs new file mode 100644 index 0000000..981cbfc --- /dev/null +++ b/GHC/Types.hs @@ -0,0 +1,9 @@ + +{-# OPTIONS_GHC -XNoImplicitPrelude #-} + +module GHC.Types where + +infixr 5 : + +data [] a = [] | a : [a] + diff --git a/ghc-prim.cabal b/ghc-prim.cabal index 0ef7a17..85811ce 100644 --- a/ghc-prim.cabal +++ b/ghc-prim.cabal @@ -18,6 +18,7 @@ Library { GHC.IntWord32 GHC.IntWord64 GHC.Tuple + GHC.Types GHC.Unit c-sources: cbits/longlong.c -- 1.7.10.4