Skip to content

Panic on degenerate closed type family

Creating a degenerate closed type family via TH gives a panic in toBranchList.

module T where

import Language.Haskell.TH

x = do n <- newName "F"
       return [ClosedTypeFamilyD n [] Nothing []]
module A where

import T

$(x)
Trac metadata
Trac field Value
Version 7.7
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler (Type checker)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information