[GHC] #14898: Panic with repSplitAppTys

GHC ghc-devs at haskell.org
Wed Mar 7 05:36:52 UTC 2018


#14898: Panic with repSplitAppTys
-------------------------------------+-------------------------------------
        Reporter:  ryanreich         |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1
      Resolution:                    |             Keywords:
Operating System:  Linux             |         Architecture:  x86_64
 Type of failure:  Compile-time      |  (amd64)
  crash or panic                     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by ryanreich):

 Replying to [ticket:14898 ryanreich]:
 > {{{#!hs
 > import Control.Monad.Reader
 > usingReader ::
 >   (Monad m) =>
 >   r ->
 >   (a -> ReaderT r m b)
 >   (a -> m b)
 > usingReader r f = flip runReaderT r . f
 > }}}
 >
 > Unfortunately, that function alone in a module does not trigger the
 panic.

 Note the error in the above type signature: there is a missing arrow on
 the line with ReaderT.  If I fix that error, the panic goes away.
 However, a standalone module still does not trigger the panic; the type
 error is correctly reported.

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


More information about the ghc-tickets mailing list