If a pragma is used together with a multi-line comment, and module is placed at the end of the multi-line comment, but on the same line as it ends, ghcmod-vim gives a parse error. It does not give the error if you move the module to a separate line, or if you remove the pragma. Below follows an example to trigger the error in HEAD. ghc-mod itself does not produce this error at all.
{-#LANGUAGE TemplateHaskell #-}
{-
-
-} module Main where
main :: a
main = undefined
If a pragma is used together with a multi-line comment, and module is placed at the end of the multi-line comment, but on the same line as it ends, ghcmod-vim gives a parse error. It does not give the error if you move the module to a separate line, or if you remove the pragma. Below follows an example to trigger the error in HEAD. ghc-mod itself does not produce this error at all.