Skip to content

Haskell --cnf backend produces code with error: Illegal type synonym family application #216

@andreasabel

Description

@andreasabel

With ghc-7.10, the code generated by the Haskell CNF backend does not compile:

$ bnfc --haskell --cnf -m Calc.cf 
...
$ make

yields

Compiling CnfTablesCalc    ( CnfTablesCalc.hs, CnfTablesCalc.o )

CnfTablesCalc.hs:14:10:
    Illegal type synonym family application in instance:
      [(CATEGORY, Any)]
    In the instance declaration for ‘RingP [(CATEGORY, Any)]’

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions