Skip to content

template-haskell 2.4 fails to compile with base 4.1

The problem is !CharConstr, which doesn't exist in Data.Data prior to base 4.2. I suppose the easiest fix is to update the build-depends in the cabal file.

But for what it's worth I had a look and the mention of !CharConstr is so brief that I wonder if it's not worth factoring it out somehow in a way that maintains compatibility – commenting out that single two-line case branch allows the build to complete fine.

Trac metadata
Trac field Value
Version 6.10.4
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries (other)
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