-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Template Haskell Typed Quotes #332
Comments
In order to avoid having HLint parse the file at all. HLint currently does not support Template Haskell typed quotes: ndmitchell/hlint#332 Using this as a workaround: ndmitchell/hlint#117 (comment)
Thanks for the info - almost certainly one to report to haskell-src-exts. Do you have a small file using typed quotes that works as a valid GHC program (e.g. |
Did this get into a real GHC release? I can't find it in the user manual. |
Are you talking about a fix in |
The feature in GHC. I would usually go to the GHC manual, grab a small sample, and then create an HSE ticket containing that. However, in this instance, googling just took me to the wiki. |
Sorry for the ridiculously delayed response on this, but here's a simple example showing the problem. {-# LANGUAGE TemplateHaskell #-}
module Example where
import Language.Haskell.TH (TExp, Q)
example :: Q (TExp String)
example = [|| "whatever" ||] This code snippet compiles, but
Using |
Thanks, reported upstream at haskell-suite/haskell-src-exts#383. |
Confirmed works with HEAD that doesn't use HSE for parsing, so fixed in the next release. |
HLint now supports typed expression quotations: ndmitchell/hlint#332
This is probably a
haskell-src-exts
issue, but opening here anyway.HLint is missing support for typed quotes, which has the
[||...||]
syntax. Currently HLint complains with a parse error.The text was updated successfully, but these errors were encountered: