[GHC] #13050: Holes don't work infix

GHC ghc-devs at haskell.org
Sun Jan 1 19:01:48 UTC 2017


#13050: Holes don't work infix
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:
            Type:  feature request   |               Status:  patch
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D2910
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by deech):

 Also the types inferred by holes can be confusing:
 {{{#!hs
 > :t 1
 1 :: Num t => t
 > :t (+) 1 1
 (+) 1 1 :: Num a => a
 > _ 1 1
 Found hole: _ :: Integer -> Integer -> te
 }}}

 I would have expected:
 {{{
 > _ 1 1
 Found hole: _ :: (Num a) => a -> a -> te
 }}}

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


More information about the ghc-tickets mailing list