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 ce83ac1 commit 9283e5fCopy full SHA for 9283e5f
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
+ 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
856
857
#endif
858
0 commit comments