[GHC] #15603: ref6 example from StaticPointers documentation doesn't type check

GHC ghc-devs at haskell.org
Tue Sep 4 15:31:10 UTC 2018


#15603: ref6 example from StaticPointers documentation doesn't type check
-------------------------------------+-------------------------------------
        Reporter:  mpickering        |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.6.1
       Component:  Compiler          |              Version:  8.4.3
      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 monoidal):

 What do you mean? If I create a file
 {{{
 {-# LANGUAGE StaticPointers #-}

 ref1 = static 1
 }}}
 then GHCs 8.0-8.4 give an error about missing `Typeable t0` instance (or
 if monomorphism restriction is disabled, about missing `Num a`)

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


More information about the ghc-tickets mailing list