Skip to content

Commit c8f001f

Browse files
committed
Improve comment
1 parent 58f01b7 commit c8f001f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ghcide/src/Development/IDE/Plugin/CodeAction.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ suggestFunctionConstraint ParsedModule{pm_parsed_source = L _ HsModule{hsmodDecl
808808
(L contextSrcSpan _ , _) ->
809809
if isGoodSrcSpan contextSrcSpan
810810
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`)
811+
else -- No explicit context, return SrcSpan at the start of type (after a potential `forall`)
812812
let start = srcSpanStart $ getLoc typeBody in mkSrcSpan start start
813813

814814
isSameName :: IdP GhcPs -> String -> Bool

0 commit comments

Comments
 (0)