[GHC] #12085: Premature defaulting and variable not in scope
GHC
ghc-devs at haskell.org
Thu May 19 15:17:38 UTC 2016
#12085: Premature defaulting and variable not in scope
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner:
Type: task | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
Resolution: | Keywords:
| TypeApplications
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonpj):
For the first part, `:type` instantiates, defaults, and re-generalises,
because `:type <expr>` works on an arbitrary expression `<expr>`.
You may want `:info`. See the extensive debate on #11376.
So I think everything is behaving as designed there. (You may want to
propose a design change.)
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12085#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list