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
c2624f32
Commit
c2624f32
authored
27 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1997-12-04 11:17:54 by simonm]
some backwards-compatibility updates that should have gone into 2.09.
parent
592a5017
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/docs/users_guide/backwards.lit
+7
-9
7 additions, 9 deletions
ghc/docs/users_guide/backwards.lit
with
7 additions
and
9 deletions
ghc/docs/users_guide/backwards.lit
+
7
−
9
View file @
c2624f32
...
...
@@ -8,7 +8,7 @@
This part of the guide is to help people upgrading from a
previous version of GHC. Right now, it is mostly to help people
switching from GHC~0.29 (a Haskell~1.2 compiler, mostly) to GHC~2.
04
switching from GHC~0.29 (a Haskell~1.2 compiler, mostly) to GHC~2.
xx
(a Haskell~1.4 compiler).
%ToDo: index
...
...
@@ -158,14 +158,11 @@ The type of the function \tr{fail} changed between draft and real-thing.
Old: \tr{fail x}; new: \tr{fail (userError x)}.
Also, what used to be \tr{failWith x} is now just \tr{fail x}.
The function \tr{try} didn't make it into 1.3 I/O. GHC supplies it
(at least for now) as @GHCio.tryIO@.
All the system modules named \tr{LibSomething} dropped the \tr{Lib}.
So: \tr{LibSystem} is now just \tr{System}.
In~0.29, you could mix-n-match @IO@ with @PrimIO@, simply because the
implementation happend to
all
ow
it
. Not any more
.
As of 2.09, GHC doesn't have @PrimIO@, and all @_ccall_@s now return
type @IO a@, where @a@ is the return type of the @_cc
all
_@
it
self
.
The \tr{IOError} type is now abstract; you cannot see it's
constructors. 1.3 provides functions to query errors.
...
...
@@ -256,9 +253,6 @@ make horrible changes to \tr{GHC*} modules....
You can't dig around inside the @ST@/@IO@ monads quite so freely.
If you want to provide your own @mainPrimIO@ routine, it must be
in a module @GHCmain@, not @Main@.
The old \tr{PreludePrimIO} interface is DEAD.
The even-older \tr{PreludeGlaIO} interface is DEADER.
...
...
@@ -277,3 +271,7 @@ and @fwrite@ are dead.
The \tr{LibPosix} stuff didn't make it into 1.3 I/O, so it has become
a ``system library'' (\tr{-syslib posix}). Other than dropping the
\tr{Lib*} prefix, everything should be the same as in 0.29.
As of GHC 2.09, @mainPrimIO@ is now called @mainIO@, to reflect the
fact that @PrimIO@ doesn't exist anymore. If you want to provide your
own @mainIO@ routine, it must be in a module @GHCmain@, not @Main@.
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