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
Alex D
GHC
Commits
8c867561
Commit
8c867561
authored
Sep 07, 2006
by
bringert@cs.chalmers.se
Browse files
Fixed typo in users guide section about lexically scoped type variables.
parent
06b8942c
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/users_guide/glasgow_exts.xml
View file @
8c867561
...
...
@@ -3236,7 +3236,7 @@ f xs = ys ++ ys
</programlisting>
The type signature for
<literal>
f
</literal>
brings the type variable
<literal>
a
</literal>
into scope; it scopes over
the entire definition of
<literal>
f
</literal>
.
In particular, it is in scope at the type signature for
<varname>
y
</varname>
.
In particular, it is in scope at the type signature for
<varname>
y
s
</varname>
.
In Haskell 98 it is not possible to declare
a type for
<varname>
ys
</varname>
; a major benefit of scoped type variables is that
it becomes possible to do so.
...
...
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