Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,323
    • Issues 4,323
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 367
    • Merge Requests 367
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #10248

Closed
Open
Opened Apr 06, 2015 by Icelandjack@IcelandjackReporter

GHC panic when used with deferred type errors, again

Similar to previous report of mine #9834 (closed). Given error.hs

data I a = I a

I get the following result:

$ ghci -fdefer-type-errors -ignore-dot-ghci error.hs 
GHCi, version 7.10.0.20150316: http://www.haskell.org/ghc/  :? for help
[1 of 1] Compiling Main             ( error.hs, interpreted )
Ok, modules loaded: Main.
*Main> I <$> _
I <$> _

<interactive>:2:7: Warning:
    Found hole ‘_’ with type: IO a0
    Where: ‘a0’ is an ambiguous type variable
    In the second argument of ‘(<$>)’, namely ‘_’
    In the first argument of ‘GHC.GHCi.ghciStepIO ::
                                IO a_auR -> IO a_auR’, namely
      ‘I <$> _’
    In a stmt of an interactive GHCi command:
      it <- GHC.GHCi.ghciStepIO :: IO a_auR -> IO a_auR (I <$> _)
ghc: panic! (the 'impossible' happened)
  (GHC version 7.10.0.20150316 for i386-unknown-linux):
        nameModule $dShow_aIT

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

*Main> 
Edited Mar 10, 2019 by Icelandjack
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#10248