minimizing ghc features and imports