GHC2021 and Safe cause a warning
{-# LANGUAGE GHC2021 #-} -- can be omitted
{-# LANGUAGE Safe #-}
module Example where
Causes a confusing, non-ignorable warning (i.e. -Werror
will always fail the builds)
% /code/ghc/_buildstage1/bin/ghc -c Example.hs
<no location info>: warning:
-XGeneralizedNewtypeDeriving is not allowed in Safe Haskell; ignoring -XGeneralizedNewtypeDeriving