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
24bcd8b0
Commit
24bcd8b0
authored
Feb 10, 1999
by
simonpj
Browse files
[project @ 1999-02-10 14:39:19 by simonpj]
Import instance involving (->)... Paul Callaghan bug report
parent
f1b69c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/rename/Rename.lhs
View file @
24bcd8b0
...
...
@@ -37,6 +37,7 @@ import TyCon ( TyCon )
import PrelMods ( mAIN, pREL_MAIN )
import TysWiredIn ( unitTyCon, intTyCon, doubleTyCon )
import PrelInfo ( ioTyCon_NAME, thinAirIdNames )
import Type ( funTyCon )
import ErrUtils ( pprBagOfErrors, pprBagOfWarnings,
doIfSet, dumpIfSet, ghcExit
)
...
...
@@ -174,7 +175,11 @@ addImplicits mod_name
-- are the types to which ambigious type variables may be defaulted by
-- the type checker; so they won't always appear explicitly.
-- [The () one is a GHC extension for defaulting CCall results.]
default_tys = [getName intTyCon, getName doubleTyCon, getName unitTyCon ]
-- ALSO: funTyCon, since it occurs implicitly everywhere!
-- (we don't want to be bothered with addImplicitOcc at every
-- function application)
default_tys = [getName intTyCon, getName doubleTyCon,
getName unitTyCon, getName funTyCon]
-- Add occurrences for IO or PrimIO
implicit_main | mod_name == mAIN
...
...
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