Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,979
    • Issues 4,979
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 469
    • Merge requests 469
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #12549
Closed
Open
Created 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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking