raichoo/haskell-vim — pull request #11 by ruedigerha (2014-11-13 16:24:37+00:00)
Title: Distinguish pragmas from comment blocks

This is how I fixed #10. It also works for these cases (from the Haskell documentation):

module Wibble {-# DEPRECATED "Use Wobble instead" #-} where
...

data T = T {-# UNPACK #-} !Float
{-# UNPACK #-} !Float

not handled is this example:

import {-# SOURCE #-} A( TA(..) )