Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
0729e745
Commit
0729e745
authored
Oct 13, 2010
by
Simon Marlow
Browse files
tweaks
parent
676b26bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
docs/users_guide/ghci.xml
View file @
0729e745
...
...
@@ -828,7 +828,7 @@ it <- <replaceable>e</replaceable>
[]
</programlisting>
However, it is tiresome for the user to have to specify the type, so GHCi extends Haskell's type-defaulting
rules (Section 4.3.4 of the Haskell
98
Report
(Revised)
) as follows. The
rules (Section 4.3.4 of the Haskell
2010
Report) as follows. The
standard rules take each group of constraints
<literal>
(C1 a, C2 a, ..., Cn
a)
</literal>
for each type variable
<literal>
a
</literal>
, and defaults the
type variable if
...
...
docs/users_guide/using.xml
View file @
0729e745
...
...
@@ -1398,6 +1398,7 @@ f "2" = 2
e.g., the
‘
default default
’
for Haskell 1.4 caused the
otherwise unconstrained value
<constant>
1
</constant>
to be
given the type
<literal>
Int
</literal>
, whereas Haskell 98
and later
defaults it to
<literal>
Integer
</literal>
. This may lead to
differences in performance and behaviour, hence the
usefulness of being non-silent about this.
</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