[GHC] #2617: GHC.Integer no longer exports S# and J#
GHC
trac at galois.com
Mon Sep 22 09:07:20 EDT 2008
#2617: GHC.Integer no longer exports S# and J#
-----------------------+----------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Component: GHC API
Version: 6.9 | Severity: normal
Keywords: | Testcase:
Architecture: x86 | Os: MacOS X
-----------------------+----------------------------------------------------
These constructors are needed for hs-plugins' Data.Binary instance for
Integer
instance Binary Integer where
get bh = do
b <- getByte bh
case b of
0 -> do (I# i#) <- get bh
return (S# i#)
_ -> do (I# s#) <- get bh
sz <- get bh
(BA a#) <- getByteArray bh sz
return (J# s# a#)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2617>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list