Skip to content

Commit

Permalink
remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wavewave committed Sep 1, 2023
1 parent 061fd22 commit 360babd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
3 changes: 1 addition & 2 deletions plugin/ghc-specter-plugin.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@ library
Paths_ghc_specter_plugin
hs-source-dirs:
src
ghc-options: -Wall -Wunused-packages
ghc-options: -Wall -Wunused-packages -Werror
build-depends:
base >=4.15 && <5
, binary
-- , binary-instances
, bytestring
, containers
, directory
Expand Down
14 changes: 2 additions & 12 deletions plugin/src-ghc96/Plugin/GHCSpecter.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,14 @@ module Plugin.GHCSpecter
)
where

import Control.Monad (when)
import Control.Monad.IO.Class (liftIO)
import Data.Foldable (for_)
import Data.Functor ((<&>))
import Data.Text qualified as T
import GHC.Core.Opt.Monad (CoreM, getDynFlags)
import GHC.Core.Opt.Pipeline.Types (CoreToDo (..))
import GHC.Driver.Env (Hsc, HscEnv (..))
import GHC.Driver.Flags (GeneralFlag (Opt_WriteHie))
import GHC.Driver.Hooks (Hooks (..))
import GHC.Driver.Plugins (ParsedResult, Plugin (..), PluginWithArgs (..), StaticPlugin (..), defaultPlugin, staticPlugins, type CommandLineOption)
import GHC.Driver.Session (gopt)
import GHC.Hs.Extension (GhcRn, GhcTc)
import GHC.Tc.Types
( TcGblEnv (..),
Expand All @@ -31,17 +27,12 @@ import GHC.Tc.Types
unsafeTcPluginTcM,
)
import GHC.Types.Unique.FM (emptyUFM)
import GHC.Unit.Module.Location (ModLocation (..))
import GHC.Unit.Module.ModSummary (ModSummary (..))
import GHCSpecter.Channel.Common.Types (DriverId (..))
import GHCSpecter.Channel.Outbound.Types
( BreakpointLoc (..),
ChanMessage (..),
)
import GHCSpecter.Channel.Outbound.Types (BreakpointLoc (..))
import GHCSpecter.Util.GHC (showPpr)
import Language.Haskell.Syntax.Decls (HsGroup)
import Language.Haskell.Syntax.Expr (LHsExpr)
import Plugin.GHCSpecter.Comm (queueMessage)
import Plugin.GHCSpecter.Console (breakPoint)
import Plugin.GHCSpecter.Hooks
( runMetaHook',
Expand All @@ -58,7 +49,6 @@ import Plugin.GHCSpecter.Tasks
typecheckResultActionCommands,
)
import Safe (headMay, readMay)
import System.Directory (canonicalizePath)

--
-- parsedResultAction plugin
Expand Down Expand Up @@ -150,7 +140,7 @@ typeCheckResultActionPlugin ::
ModSummary ->
TcGblEnv ->
TcM TcGblEnv
typeCheckResultActionPlugin opts modSummary tc = do
typeCheckResultActionPlugin opts _modSummary tc = do
for_ (DriverId <$> (readMay =<< headMay opts)) $ \drvId -> do
breakPoint
drvId
Expand Down

0 comments on commit 360babd

Please sign in to comment.