Skip to content

Commit

Permalink
HlsRefactorPlugin: fixes stylish haskell
Browse files Browse the repository at this point in the history
  • Loading branch information
dsaenztagarro committed Jul 6, 2024
1 parent 56acfe6 commit b6ffd3c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1982,14 +1982,18 @@ smallerRangesForBindingExport lies b =
where
unqualify = snd . breakOnEnd "."
b' = wrapOperatorInParens $ unqualify b

#if MIN_VERSION_ghc(9,9,0)
ranges' (L _ (IEThingWith _ thing _ inners _))
| T.unpack (printOutputable thing) == b' = []
| otherwise =
[ locA l' | L l' x <- inners, T.unpack (printOutputable x) == b']
#else
ranges' (L _ (IEThingWith _ thing _ inners))
#endif
| T.unpack (printOutputable thing) == b' = []
| otherwise =
[ locA l' | L l' x <- inners, T.unpack (printOutputable x) == b']
#endif
ranges' _ = []

rangesForBinding' :: String -> LIE GhcPs -> [SrcSpan]
Expand Down

0 comments on commit b6ffd3c

Please sign in to comment.