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,319
    • Issues 4,319
    • 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
  • #12549

Closed
Open
Opened Aug 28, 2016 by johnleo@trac-johnleo

Panic on ":t datatypeName"

Reproduction:

GHCi, version 8.1.20160826: http://www.haskell.org/ghc/  :? for help
Loaded GHCi configuration from /Users/leo/.ghci
Prelude> :m + GHC.Generics
:m + GHC.Generics
Prelude GHC.Generics> :t datatypeName
:t datatypeName
ghc-stage2: panic! (the 'impossible' happened)
  (GHC version 8.1.20160826 for x86_64-apple-darwin):
	ASSERT failed!
  CallStack (from HasCallStack):
  assertPprPanic, called at compiler/types/TyCoRep.hs:2094:44 in ghc:TyCoRep
  checkValidSubst, called at compiler/types/TyCoRep.hs:2122:17 in ghc:TyCoRep
  substTy, called at compiler/typecheck/TcMType.hs:793:24 in ghc:TcMType
  in_scope InScope {k1_a1X8}
  tenv [a1X0 :-> k1_a1X8[tau:3]]
  cenv []
  tys [k_a1X4[tau:3] → (k1_a1X0 → *) → k1_a1X0 → ★]
  cos []
  needInScope [a1X4 :-> k_a1X4[tau:3]]

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
Edited Mar 10, 2019 by johnleo
Assignee
Assign to
8.2.1
Milestone
8.2.1 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#12549