Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alexbiehl-gc
GHC
Commits
d0e4be14
Commit
d0e4be14
authored
26 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1998-08-14 12:56:27 by sof]
Define Int64 and Word64 types
parent
e7942525
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/lib/std/PrelCCall.lhs
+19
-3
19 additions, 3 deletions
ghc/lib/std/PrelCCall.lhs
with
19 additions
and
3 deletions
ghc/lib/std/PrelCCall.lhs
+
19
−
3
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}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment