Template Haskell quotion for []

Krasimir Angelov kr.angelov at gmail.com
Tue Nov 7 09:55:19 EST 2006


I had this example that was working with earliest versions of GHC but
it doesn't work with GHC-6.6.

$(deriveReflectable ''[])

Above this isn't a double quote but two single quotes. It may not be
clear with some fonts. Is this a bug or just there is a change in the
syntax? The error that I get is:

    Illegal variable name: `[]'
    When splicing generated code into the program


More information about the Glasgow-haskell-users mailing list