[GHC] #10846: PartialTypeSignatures change implicit CallStack behavior

GHC ghc-devs at haskell.org
Sun Sep 6 17:54:22 UTC 2015


#10846: PartialTypeSignatures change implicit CallStack behavior
-------------------------------------+-------------------------------------
        Reporter:  nitromaster101    |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.10.2
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by nitromaster101):

 Another version of f2 produces the same incorrect behavior:
 {{{#!hs
 f2 :: (?loc :: CallStack, _) => String
 f2 = show $ map (srcLocStartLine . snd) $ getCallStack ?loc
 }}}
 It's the same idea, but now the wildcard is in the constraints, even when
 it unifies with ().

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


More information about the ghc-tickets mailing list