[GHC] #10224: Partial type signatures generate typed hole warnings
GHC
ghc-devs at haskell.org
Tue Mar 31 22:51:17 UTC 2015
#10224: Partial type signatures generate typed hole warnings
-------------------------------------+-------------------------------------
Reporter: quchen | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.10.2
Component: Compiler | Version: 7.10.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect | Unknown/Multiple
warning at compile-time | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by mpickering):
I think this is the expected behaviour. From the user guide:
> By default, the type-checker will report an error message for each hole
in a partial type signature, informing the programmer of the inferred
type. When the -XPartialTypeSignatures flag is enabled, the type-checker
will accept the inferred type for each hole, generating warnings instead
of errors. Additionally, these warnings can be silenced with the -fno-
warn-partial-type-signatures flag.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10224#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list