[GHC] #11242: GHCi ignores -fno-warn-typed-holes

GHC ghc-devs at haskell.org
Thu Dec 17 16:27:19 UTC 2015


#11242: GHCi ignores -fno-warn-typed-holes
-------------------------------------+-------------------------------------
           Reporter:  crockeea       |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:  8.0.1
          Component:  GHCi           |           Version:  7.10.2
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  Incorrect
  Unknown/Multiple                   |  warning at compile-time
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 If I load the following code in GHCi:

 {{{
 {-# LANGUAGE PartialTypeSignatures #-}

 main = print $ f 3

 f :: Int -> _
 f = id
 }}}

 I get a warning about having a type hole. But when I load GHCi with `-fno-
 warn-typed-holes` (or set it with `:set`) I still get the warning message.

 It seems that GHC does respect the flag, i.e. `ghc Main -fno-warn-typed-
 holes` does not produce a warning, as expected.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11242>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list