Add GHC.Ordering
authorIan Lynagh <igloo@earth.li>
Sat, 12 Apr 2008 10:11:53 +0000 (10:11 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 12 Apr 2008 10:11:53 +0000 (10:11 +0000)
GHC/Ordering.hs [new file with mode: 0644]
ghc-prim.cabal

diff --git a/GHC/Ordering.hs b/GHC/Ordering.hs
new file mode 100644 (file)
index 0000000..8d627d4
--- /dev/null
@@ -0,0 +1,12 @@
+
+{-# OPTIONS_GHC -fno-implicit-prelude #-}
+
+module GHC.Ordering where
+
+-- We need Inl etc behind the scenes for the Ordering definition
+import GHC.Generics
+
+default ()
+
+data Ordering = LT | EQ | GT
+
index 74c5705..f4235f6 100644 (file)
@@ -13,6 +13,7 @@ Library {
     exposed-modules:
         GHC.Bool
         GHC.Generics
+        GHC.Ordering
         GHC.PrimopWrappers
         GHC.IntWord32
         GHC.IntWord64