File tree 2 files changed +4
-3
lines changed
lib/Language/Haskell/Stylish/Step
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 9
9
strategy :
10
10
matrix :
11
11
os : [ubuntu-latest, macOS-latest]
12
- ghc : ["9.4", "9. 6", "9.8", "9.10"]
12
+ ghc : ["9.6", "9.8", "9.10"]
13
13
fail-fast : false
14
14
15
15
steps :
16
16
- uses : actions/checkout@v2
17
17
18
- - uses : haskell/ actions/setup@v2
18
+ - uses : haskell- actions/setup@v2
19
19
name : Setup Haskell Cabal
20
20
with :
21
21
ghc-version : ${{ matrix.ghc }}
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ module Language.Haskell.Stylish.Step.SimpleAlign
13
13
import Data.Either (partitionEithers )
14
14
import Data.Foldable (toList )
15
15
import Data.List (foldl1' , sortOn )
16
+ import qualified Data.List as List
16
17
import Data.Maybe (fromMaybe )
17
18
import qualified GHC.Hs as Hs
18
19
import qualified GHC.Parser.Annotation as GHC
@@ -117,7 +118,7 @@ matchToAlignable (GHC.L matchLoc m@(Hs.Match _ Hs.CaseAlt pats@(_ : _) grhss)) =
117
118
pat = last patsLocs
118
119
guards = getGuards m
119
120
guardsLocs = map GHC. getLocA guards
120
- left = foldl' GHC. combineSrcSpans pat guardsLocs
121
+ left = List. foldl' GHC. combineSrcSpans pat guardsLocs
121
122
body <- rhsBody grhss
122
123
matchPos <- GHC. srcSpanToRealSrcSpan $ GHC. locA matchLoc
123
124
leftPos <- GHC. srcSpanToRealSrcSpan left
You can’t perform that action at this time.
0 commit comments