Source

strict-ghc-plugin / Strict / Plugin.hs

Full commit
module Strict.Plugin (plugin) where
import Strict.Pass
import GhcPlugins

plugin :: Plugin
plugin = defaultPlugin {
  installCoreToDos = install
  }

install :: [CommandLineOption] -> [CoreToDo] -> CoreM [CoreToDo]
install _option todos = do
    return $ CoreDoPluginPass "Strictify" strictifyProgram : todos