Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
d0e4be14
Commit
d0e4be14
authored
Aug 14, 1998
by
sof
Browse files
[project @ 1998-08-14 12:56:27 by sof]
Define Int64 and Word64 types
parent
e7942525
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/lib/std/PrelCCall.lhs
View file @
d0e4be14
...
...
@@ -8,8 +8,12 @@
{-# OPTIONS -fno-implicit-prelude #-}
module PrelCCall (
CCallable(..), CReturnable(..),
Word(..)
CCallable(..),
CReturnable(..),
Word(..),
Word64(..),
Int64(..)
) where
import PrelBase
...
...
@@ -42,12 +46,24 @@ instance CCallable Double
instance CCallable Double#
instance CReturnable Double
data Word = W# Word# deriving (Eq, Ord) -- Glasgow extension
data Word = W# Word#
deriving (Eq, Ord) -- Glasgow extension
instance CCallable Word
instance CCallable Word#
instance CReturnable Word
data Word64 = W64# Word64# --deriving (Eq, Ord) -- Glasgow extension
data Int64 = I64# Int64# --deriving (Eq, Ord) -- Glasgow extension
instance CCallable Word64
instance CCallable Word64#
instance CReturnable Word64
instance CCallable Int64
instance CCallable Int64#
instance CReturnable Int64
instance CReturnable () -- Why, exactly?
\end{code}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment