[GHC] #14479: Partial type signatures and generalisation

GHC ghc-devs at haskell.org
Fri Nov 17 16:13:22 UTC 2017


#14479: Partial type signatures and generalisation
-------------------------------------+-------------------------------------
           Reporter:  simonpj        |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.2.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 This should be rejected
 {{{
 foo :: Num a => a -> a
 foo x = g x x
  where
    g :: Num b => _ -> b -> b
    g _ y = x + y
 }}}
 But it isn't.

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


More information about the ghc-tickets mailing list