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 58f01b7 commit c8f001fCopy full SHA for c8f001f
ghcide/src/Development/IDE/Plugin/CodeAction.hs
@@ -808,7 +808,7 @@ suggestFunctionConstraint ParsedModule{pm_parsed_source = L _ HsModule{hsmodDecl
808
(L contextSrcSpan _ , _) ->
809
if isGoodSrcSpan contextSrcSpan
810
then contextSrcSpan -- The type signature has explicit context
811
- else -- No explicit context, return SrcSpanqq at the start of type body (the part of type which follows the optional `forall`)
+ else -- No explicit context, return SrcSpan at the start of type (after a potential `forall`)
812
let start = srcSpanStart $ getLoc typeBody in mkSrcSpan start start
813
814
isSameName :: IdP GhcPs -> String -> Bool
0 commit comments