My current ghc-9.0.2 seems perfectly happy without these.
where
import Data.Maybe ( fromMaybe )
-import Data.Monoid ( (<>) )
import Data.String.Utils ( join )
import Database.HDBC ( SqlError( seNativeError, seErrorMsg ), handleSql )
import Database.HDBC.PostgreSQL ( connectPostgreSQL )
load,
lookup )
import Data.Data ( Data )
-import Data.Monoid ( Monoid() )
-import Data.Semigroup ( Semigroup( (<>) ) )
import Paths_mailbox_count ( getSysconfDir )
import System.Directory ( getHomeDirectory )
import System.FilePath ( (</>) )