primitive 0.2 → 0.2.1
raw patch · 3 files changed
+13/−13 lines, 3 files
Files
- Data/Primitive/Addr.hs +0/−10
- Data/Primitive/Types.hs +10/−0
- primitive.cabal +3/−3
Data/Primitive/Addr.hs view
@@ -24,16 +24,6 @@ import GHC.Base ( Int(..) ) import GHC.Prim -instance Eq Addr where- Addr a# == Addr b# = eqAddr# a# b#- Addr a# /= Addr b# = neAddr# a# b#--instance Ord Addr where- Addr a# > Addr b# = gtAddr# a# b#- Addr a# >= Addr b# = geAddr# a# b#- Addr a# < Addr b# = ltAddr# a# b#- Addr a# <= Addr b# = leAddr# a# b#- -- | The null address nullAddr :: Addr nullAddr = Addr nullAddr#
Data/Primitive/Types.hs view
@@ -38,6 +38,16 @@ -- | A machine address data Addr = Addr Addr# +instance Eq Addr where+ Addr a# == Addr b# = eqAddr# a# b#+ Addr a# /= Addr b# = neAddr# a# b#++instance Ord Addr where+ Addr a# > Addr b# = gtAddr# a# b#+ Addr a# >= Addr b# = geAddr# a# b#+ Addr a# < Addr b# = ltAddr# a# b#+ Addr a# <= Addr b# = leAddr# a# b#+ -- | Class of types supporting primitive array operations class Prim a where
primitive.cabal view
@@ -1,11 +1,11 @@ Name: primitive-Version: 0.2+Version: 0.2.1 License: BSD3 License-File: LICENSE Author: Roman Leshchinskiy <rl@cse.unsw.edu.au> Maintainer: Roman Leshchinskiy <rl@cse.unsw.edu.au>-Copyright: (c) Roman Leshchinskiy 2009-Homepage: http://www.cse.unsw.edu.au/~rl/darcs/primitive+Copyright: (c) Roman Leshchinskiy 2009-10+Homepage: http://code.haskell.org/primitive Category: Data Synopsis: Wrappers for primitive operations Description: