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
Glasgow Haskell Compiler
GHC
Commits
233b9c71
Commit
233b9c71
authored
Feb 04, 1999
by
sof
Browse files
[project @ 1999-02-04 15:20:32 by sof]
Document new -fwarn-type-defaults option.
parent
b2def40b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/docs/users_guide/using.vsgml
View file @
233b9c71
...
@@ -397,6 +397,21 @@ mention of it in the export list.
...
@@ -397,6 +397,21 @@ mention of it in the export list.
This option is on by default.
This option is on by default.
<tag><tt>-fwarn-type-defaults</tt>:</tag>
<nidx>-fwarn-type-defaults option</nidx>
<nidx>defaulting mechanism, warning</nidx>
Have the compiler warn/inform you where in your source the Haskell
defaulting mechanism for numeric types kicks in. This is useful
information when converting code from a context that assumed one
default into one with another, e.g., the 'default default' for Haskell
1.4 caused the otherwise unconstrained value <tt>1</tt> to be given
the type <tt>Int</tt>, whereas Haskell 98 defaults it to
<tt>Integer</tt>. This may lead to differences in performance and
behaviour, hence the usefulness of being non-silent about this.
This warning is off by default.
<tag>@-fwarn-missing-signatures@:</tag>
<tag>@-fwarn-missing-signatures@:</tag>
<nidx>-fwarn-missing-signatures option</nidx>
<nidx>-fwarn-missing-signatures option</nidx>
<nidx>type signatures, missing</nidx>
<nidx>type signatures, missing</nidx>
...
...
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