Merge GHC.Bool into GHC.Types
authorIan Lynagh <igloo@earth.li>
Sat, 23 Oct 2010 16:04:17 +0000 (16:04 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 23 Oct 2010 16:04:17 +0000 (16:04 +0000)
GHC/Bool.hs [deleted file]
GHC/IntWord32.hs
GHC/IntWord64.hs
GHC/Types.hs
ghc-prim.cabal

diff --git a/GHC/Bool.hs b/GHC/Bool.hs
deleted file mode 100644 (file)
index f826ae7..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-
-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
-
-module GHC.Bool (Bool(..)) where
-
--- We need Inl etc behind the scenes for the Bool definition
-import GHC.Generics ()
-
-default ()
-
-data Bool = False | True
index af4a391..d31a8ee 100644 (file)
@@ -25,8 +25,8 @@ module GHC.IntWord32 (
  ) where
 
 #if WORD_SIZE_IN_BITS < 32
-import GHC.Bool
 import GHC.Prim
+import GHC.Types
 
 foreign import unsafe "stg_eqWord32"      eqWord32#      :: Word32# -> Word32# -> Bool
 foreign import unsafe "stg_neWord32"      neWord32#      :: Word32# -> Word32# -> Bool
index 5260867..1b2da2f 100644 (file)
@@ -25,8 +25,8 @@ module GHC.IntWord64 (
  ) where
 
 #if WORD_SIZE_IN_BITS < 64
-import GHC.Bool
 import GHC.Prim
+import GHC.Types
 
 foreign import ccall unsafe "hs_eqWord64"    eqWord64#      :: Word64# -> Word64# -> Bool
 foreign import ccall unsafe "hs_neWord64"    neWord64#      :: Word64# -> Word64# -> Bool
index b2d0291..59ce386 100644 (file)
@@ -16,7 +16,7 @@
 
 {-# OPTIONS_GHC -XNoImplicitPrelude #-}
 
-module GHC.Types (Char(..), Int(..), Float(..), Double(..), IO(..)) where
+module GHC.Types (Bool(..), Char(..), Int(..), Float(..), Double(..), IO(..)) where
 
 import GHC.Prim
 -- We need Inl etc behind the scenes for the type definitions
@@ -26,6 +26,8 @@ infixr 5 :
 
 data [] a = [] | a : [a]
 
+data Bool = False | True
+
 {-| The character type 'Char' is an enumeration whose values represent
 Unicode (or equivalently ISO\/IEC 10646) characters
 (see <http://www.unicode.org/> for details).
index c887b6c..9de5b03 100644 (file)
@@ -22,7 +22,6 @@ flag include-ghc-prim {
 Library {
     build-depends: rts
     exposed-modules:
-        GHC.Bool
         GHC.Debug
         GHC.Generics
         GHC.Magic