We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6360af8 commit 5dacec9Copy full SHA for 5dacec9
ghcide/src/Development/IDE/GHC/Compat/Core.hs
@@ -840,6 +840,8 @@ pattern L l a <- GHC.L (getLoc -> l) a
840
type HasSrcSpan = SrcLoc.HasSrcSpan
841
getLoc :: SrcLoc.HasSrcSpan a => a -> SrcLoc.SrcSpan
842
getLoc = SrcLoc.getLoc
843
+instance HasSrcSpan SrcLoc.SrcSpan where
844
+ Development.IDE.GHC.Compat.Core.getLoc = id
845
846
#else
847
@@ -849,6 +851,8 @@ instance HasSrcSpan Name where
849
851
getLoc = nameSrcSpan
850
852
instance HasSrcSpan (SrcLoc.GenLocated SrcSpan a) where
853
854
+instance HasSrcSpan SrcSpan where
855
+ getLoc = id
856
857
#endif
858
0 commit comments