module ImportStylePlugin.Derived where import qualified GHC.Plugins as Ghc import ImportStylePlugin import ImportStylePlugin.Config plugin :: ImportsStyle -> Ghc.Plugin plugin :: ImportsStyle -> Plugin plugin ImportsStyle style = Plugin Ghc.defaultPlugin { Ghc.typeCheckResultAction = \[CommandLineOption] _ ModSummary _ TcGblEnv c -> ImportsStyle -> TcGblEnv -> TcM TcGblEnv importPlugin ImportsStyle style TcGblEnv c , Ghc.pluginRecompile = Ghc.purePlugin }