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
Model registry
Operate
Terraform modules
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
Gesh
GHC
Commits
d6b6919a
Commit
d6b6919a
authored
25 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1999-09-16 17:23:38 by sof]
Doc'ed the (retirement?) home of fromInt and toInt
parent
63d09d2b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/docs/libraries/Int.sgml
+18
-2
18 additions, 2 deletions
ghc/docs/libraries/Int.sgml
with
18 additions
and
2 deletions
ghc/docs/libraries/Int.sgml
+
18
−
2
View file @
d6b6919a
...
...
@@ -2,8 +2,8 @@
<label id="sec:Int">
<p>
This
library
provides
signed integers of various size
s.
The
types
supported are as follows:
This
interface
provides
a collection of sized, signed integer
s. The
types
supported are as follows:
<tabular ca="ll">
type | number of bits @
...
...
@@ -94,3 +94,19 @@ C implementations.
Hugs does not provide <tt/Int64/ at the moment.
</itemize>
The <tt/Int/ module also exports the overloaded operations for
converting to and from Haskell <tt/Int/s:
<tscreen><verb>
toInt :: (Integral a) => a -> Int
fromInt :: (Num a) => Int -> a
</verb></tscreen>
Portability note: both Hugs98 and all releases of GHC prior to
ghc-4.05 also exports these two via the Prelude. So, to have code
that uses <tt>toInt</tt> and <tt>fromInt</tt> be maximally portable,
make sure you add an import on <tt>Int</tt> (even if the version
of Hugs or GHC you're currently using may not export these two
from there.)
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