[GHC] #15646: ghci takes super long time to find the type of large fractional number

GHC ghc-devs at haskell.org
Tue Oct 16 02:50:07 UTC 2018


#15646: ghci takes super long time to find the type of large fractional number
-------------------------------------+-------------------------------------
        Reporter:  Johannkokos       |                Owner:
                                     |  JulianLeviston
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.6.1
       Component:  GHCi              |              Version:  8.4.3
      Resolution:                    |             Keywords:  newcomer
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by JulianLeviston):

 Hm... now, following the refactoring of changing the types, I'm up against
 this, in `Convert.hs`:

 {{{
 cvtOverLit (RationalL r)
   = do { force r; return $ mkHsFractional (mkFractionalLit r) }
 }}}

 ... which clearly doesn't type-check anymore because it's expecting a
 `RationalL r` where `r :: Rational`. Given the `Lit` types for `TH` don't
 include anything remotely compatible with this, I'm not too sure what to
 do. Can we change `TH` syntax?

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


More information about the ghc-tickets mailing list