@@ -12,7 +12,6 @@ module Haskell.Ide.Engine.Plugin.GhcMod
1212 -- * For tests
1313 , Bindings (.. )
1414 , FunctionSig (.. )
15- , InfoParams (.. )
1615 , TypeDef (.. )
1716 , TypeParams (.. )
1817 , TypedHoles (.. ) -- only to keep the GHC 8.4 and below unused field warning happy
@@ -88,26 +87,8 @@ checkCmd = CmdSync setTypecheckedModule
8887customOptions :: Options
8988customOptions = defaultOptions { fieldLabelModifier = camelTo2 ' _' . drop 2 }
9089
91- data InfoParams =
92- IP { ipFile :: Uri
93- , ipExpr :: T. Text
94- } deriving (Eq ,Show ,Generic )
95-
96- instance FromJSON InfoParams where
97- parseJSON = genericParseJSON customOptions
98- instance ToJSON InfoParams where
99- toJSON = genericToJSON customOptions
100-
101- -- infoCmd :: CommandFunc InfoParams T.Text
102- -- infoCmd = CmdSync $ \(IP uri expr) ->
103- -- infoCmd' uri expr
104-
105- -- infoCmd' :: Uri -> T.Text -> IdeGhcM (IdeResult T.Text)
106- -- infoCmd' uri expr =
107- -- pluginGetFile "info: " uri $ \file ->
108- -- fmap T.pack <$> Hie.runGhcModCommand (GM.info file (GM.Expression (T.unpack expr)))
109-
11090-- ---------------------------------------------------------------------
91+
11192data TypeParams =
11293 TP { tpIncludeConstraints :: Bool
11394 , tpFile :: Uri
@@ -123,7 +104,6 @@ typeCmd :: CommandFunc TypeParams [(Range,T.Text)]
123104typeCmd = CmdSync $ \ (TP _bool uri pos) ->
124105 liftToGhc $ newTypeCmd pos uri
125106
126- -- AZ: currently only used in tests, but
127107newTypeCmd :: Position -> Uri -> IdeM (IdeResult [(Range , T. Text )])
128108newTypeCmd newPos uri =
129109 pluginGetFile " newTypeCmd: " uri $ \ fp ->
0 commit comments