Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
5bd23e51
Commit
5bd23e51
authored
Oct 28, 2008
by
Ian Lynagh
Browse files
Rename some variables in docs
parent
faad3e20
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/users_guide/glasgow_exts.xml
View file @
5bd23e51
...
...
@@ -2007,9 +2007,9 @@ upd1 t x = t { f1=x } -- OK: upd1 :: T a -> b -> T b
upd2 t x = t { f2=x } -- BAD (f2's type mentions b, which is
existentially quantified)
data G a b where { G1 {
f
1::a,
f
2::c } :: G a [c] }
upd3 g x = g {
f
1=x } -- OK: upd3 :: G a b -> c -> G c b
upd4 g x = g {
f
2=x } -- BAD (f2's type mentions c, which is not a simple
data G a b where { G1 {
g
1::a,
g
2::c } :: G a [c] }
upd3 g x = g {
g
1=x } -- OK: upd3 :: G a b -> c -> G c b
upd4 g x = g {
g
2=x } -- BAD (f2's type mentions c, which is not a simple
-- type-variable argument in G1's result type)
</programlisting>
</para>
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment