File tree 4 files changed +2140
-3
lines changed
ghcide/src/Development/IDE/Spans
4 files changed +2140
-3
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ import Data.Version (showVersion)
56
56
import Development.IDE.Types.Shake (WithHieDb )
57
57
import HieDb hiding (pointCommand )
58
58
import System.Directory (doesFileExist )
59
+ import Debug.Trace
59
60
60
61
-- | Gives a Uri for the module, given the .hie file location and the the module info
61
62
-- The Bool denotes if it is a boot module
@@ -214,7 +215,7 @@ atPoint
214
215
atPoint IdeOptions {} (HAR _ hf _ _ kind) (DKMap dm km) env pos = listToMaybe $ pointCommand hf pos hoverInfo
215
216
where
216
217
-- Hover info for values/data
217
- hoverInfo ast = (Just range, prettyNames ++ pTypes)
218
+ hoverInfo ast = trace ( T. unpack prettyAST) (Just range, prettyNames ++ pTypes)
218
219
where
219
220
pTypes
220
221
| Prelude. length names == 1 = dropEnd1 $ map wrapHaskell prettyTypes
@@ -254,6 +255,10 @@ atPoint IdeOptions{} (HAR _ hf _ _ kind) (DKMap dm km) env pos = listToMaybe $ p
254
255
HieFresh -> printOutputable t
255
256
HieFromDisk full_file -> printOutputable $ hieTypeToIface $ recoverFullType t (hie_types full_file)
256
257
258
+ prettyAST = case kind of
259
+ HieFresh -> printOutputable ast
260
+ HieFromDisk full_file -> " "
261
+
257
262
definedAt name =
258
263
-- do not show "at <no location info>" and similar messages
259
264
-- see the code of 'pprNameDefnLoc' for more information
Original file line number Diff line number Diff line change @@ -47,6 +47,6 @@ library
47
47
if (impl(ghc > 8.9 ) && impl(ghc < 8.11 ))
48
48
hs-source-dirs : src-ghc810 src-reexport
49
49
if (impl(ghc >= 9.0 ) && impl(ghc < 9.1 ) || flag(ghc-lib))
50
- hs-source-dirs : src-reexport-ghc9
50
+ hs-source-dirs : src-ghc90 src- reexport-ghc9
51
51
if (impl(ghc >= 9.2 ) && impl(ghc < 9.3 ))
52
- hs-source-dirs : src-reexport-ghc9
52
+ hs-source-dirs : src-ghc92 src- reexport-ghc9
File renamed without changes.
You can’t perform that action at this time.
0 commit comments