Permalink
Browse files

Use new comparison primop wrappers

  • Loading branch information...
1 parent 1ac38ef commit c484bcee5898257ceceecd9c354eadc376075e9c @jstolarek committed Apr 14, 2013
Showing with 10 additions and 2 deletions.
  1. +8 −2 GHC/Base.lhs
  2. +2 −0 GHC/Exts.hs
View
@@ -11,11 +11,15 @@ The overall structure of the GHC Prelude is a bit tricky.
So the rough structure is as follows, in (linearised) dependency order
-GHC.Prim Has no implementation. It defines built-in things, and
+GHC.Prim Has no implementation. It defines built-in things, and
by importing it you bring them into scope.
The source file is GHC.Prim.hi-boot, which is just
copied to make GHC.Prim.hi
+GHC.PrimWrappers
+ Provides wrappers for built-in comparison operators.
+ These wrappers take unboxed operands and return a Bool.
+
GHC.Base Classes: Eq, Ord, Functor, Monad
Types: list, (), Int, Bool, Ordering, Char, String
@@ -102,7 +106,8 @@ module GHC.Base
module GHC.Magic,
module GHC.Types,
module GHC.Prim, -- Re-export GHC.Prim and GHC.Err, to avoid lots
- module GHC.Err -- of people having to import it explicitly
+ module GHC.PrimWrappers,-- of people having to import it explicitly
+ module GHC.Err
)
where
@@ -111,6 +116,7 @@ import GHC.Classes
import GHC.CString
import GHC.Magic
import GHC.Prim
+import GHC.PrimWrappers
import {-# SOURCE #-} GHC.Err
import {-# SOURCE #-} GHC.IO (failIO)
View
@@ -28,6 +28,7 @@ module GHC.Exts
-- * Primitive operations
module GHC.Prim,
+ module GHC.PrimWrappers,
shiftL#, shiftRL#, iShiftL#, iShiftRA#, iShiftRL#,
uncheckedShiftL64#, uncheckedShiftRL64#,
uncheckedIShiftL64#, uncheckedIShiftRA64#,
@@ -66,6 +67,7 @@ module GHC.Exts
import Prelude
import GHC.Prim
+import GHC.PrimWrappers
import GHC.Base
import GHC.Word
import GHC.Int

0 comments on commit c484bce

Please sign in to comment.