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,937
    • Issues 4,937
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 454
    • Merge requests 454
  • 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
  • #9209
Closed
Open
Created Jun 15, 2014 by tulcod@trac-tulcod

Template haskell panic

I was trying to get some template haskell thing to work and was messing around and ran into this bug.

Prelude> let $([d||])
ghc: panic! (the 'impossible' happened)
  (GHC version 7.8.2 for x86_64-unknown-linux):
        cvBindsAndSigs $[splice{v}]([d| |])
 
Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
 
Prelude>

The following file:

{-# LANGUAGE TemplateHaskell #-}
let $([d||])
main = do
   return ()

gives the following error message:

test.hs:3:1:
    parse error (possibly incorrect indentation or mismatched brackets)

but doesn't crash. So it seems to be ghci-specific...?

the other oxford brackets work fine (or don't suffer from exactly the same bug, anyway)

Edited Mar 09, 2019 by tulcod
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking