You need to write the pragma in another way. After some trial and error I came up with the following:
module Test where
import Data.Char(toUpper)
{-# ANN module "HLint: ignore Use string literal" #-}
main :: IO ()
main = putStrLn ['a','b','c']
note that you have to write "module"
and not the name of the module