Cannot parse LANGUAGE pragma [GHC-68686]
The LANGUAGE pragma expects a comma separated list of existing language extension. Each start with a capital letter.
Examples
Invalid LANGUAGE pragma
Error Message
Cannot parse LANGUAGE pragma
Expecting comma-separated list of language options,
each starting with a capital letter
E.g. {-# LANGUAGE TemplateHaskell, GADTs #-}
Main.hs
Before
{-# LANGUAGE GADTs TemplateHaskell #-}
module Main where
main = print "Please look at the LANGUAGE pragmas!"
After
{-# LANGUAGE GADTs, TemplateHaskell #-}
module Main where
main = print "Please look at the LANGUAGE pragmas!"