You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whoa! Are the annotations even parsed? Actually I think not, because the parser literally sucks out text between{-@ ... @-} before doing any parsing, so if you don't close, then ... that text is just empty... :-/
I just got an email from a user wondering what is wrong with an annotation like this and took me a log time to spot the typo. So, maybe a warning could be helpful.
GHC throws an error if you have an improperly closed pragma, e.g.
{-# LANGUAGE Blah -}
/Users/gridaphobe/Source/liquid/haskell/src/Language/Haskell/Liquid/GHC/Interface.hs:1:14: error:
Cannot parse LANGUAGE pragma
Expecting comma-separated list of language options,
each starting with a capital letter
E.g. {-# LANGUAGE TemplateHaskell, GADTs #-}
I think this is a good idea (but we can do better with the error message)!
The following is SAFE
Because the annotation is not closing with
@
.Maybe we need to create a warning in this case?
The text was updated successfully, but these errors were encountered: