[GHC] #13772: Cannot put HasCallStack on instances

GHC ghc-devs at haskell.org
Sat Jun 10 10:14:38 UTC 2017


#13772: Cannot put HasCallStack on instances
-------------------------------------+-------------------------------------
        Reporter:  augustss          |                Owner:  (none)
            Type:  bug               |               Status:  new
        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):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by augustss):

 So can you explain where I should put my HasCallstack constraint in my
 Monoid instance?
 I'd like to get a call stack when mempty is used and it calls error.

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


More information about the ghc-tickets mailing list