derivingUnbox accepts invalid constructor suffixes
Closed this issue · 4 comments
liyang commented
Despite the documentation noting the fact, it appears people are passing in arbitrary strings as the constructor suffix.
Previous GHC/TH actually accepted constructor names with spaces (yes, spaces) in them, but GHC 7.10 won't stand for that sort of shit. (And neither should we.)
pacak commented
pacak commented
But now it won't allow to use _ as part of the suffix!
On 14 Jan, 2015 3:07 pm, "Liyang HU" notifications@github.com wrote:
Closed #7 https://github.com/liyang/vector-th-unbox/issues/7 via ee02c9d
liyang@ee02c9d
.—
Reply to this email directly or view it on GitHub
https://github.com/liyang/vector-th-unbox/issues/7#event-218582020.
liyang commented
Oh shi― Yes, I didn't read §2.4 Identifiers and Operators closely enough.