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,392
    • Issues 4,392
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 374
    • Merge Requests 374
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #9209

Closed
Open
Opened 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
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#9209