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

import GHC.Tc.Utils.Monad ( 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 ()
  }