summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T11462_Plugin.hs
blob: bc57d160895ed069122e984d9b83af0a379d9422 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module T11462_Plugin(plugin) where

import TcRnMonad ( TcPlugin(..), TcPluginResult(..) )
import GHC.Driver.Plugins ( defaultPlugin, Plugin(..), CommandLineOption )

plugin :: Plugin
plugin = defaultPlugin { tcPlugin = Just . thePlugin }

thePlugin :: [CommandLineOption] -> TcPlugin
thePlugin opts = TcPlugin
  { tcPluginInit  = return ()
  , tcPluginSolve = \_ _ _ _ -> return $ TcPluginOk [] []
  , tcPluginStop  = \_ -> return ()
  }