Skip to content

Commit

Permalink
CI: HLint: fx action (#1087)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-Latukha authored Mar 12, 2023
1 parent 2c57771 commit 34c24c7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/HLint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
- uses: actions/checkout@v3

- name: 'Installing'
uses: rwe/actions-hlint-setup@v1
uses: haskell/actions/hlint-setup@v2
with:
version: '3.3.1'
version: '3.5'

- name: 'Checking code'
uses: rwe/actions-hlint-run@v2
uses: haskell/actions/hlint-run@v2
with:
path: .
fail-on: warning
4 changes: 2 additions & 2 deletions src/Nix/Json.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ toEncodingSorted :: A.Value -> A.Encoding
toEncodingSorted = \case
A.Object m ->
A.pairs
. fold
. ((\(k, v) -> A.pair k $ toEncodingSorted v) <$>)
. foldMap
(\(k, v) -> A.pair k $ toEncodingSorted v)
. sortWith fst $
#if MIN_VERSION_aeson(2,0,0)
AKM.toList
Expand Down
4 changes: 2 additions & 2 deletions src/Nix/String.hs
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ toNixLikeContext stringContext =
stringContext
where
fun :: (StringContext -> AttrSet NixLikeContextValue -> AttrSet NixLikeContextValue)
fun sc hm =
uncurry (M.insertWith (<>)) (swap $ toNixLikeContextValue sc) hm
fun sc =
uncurry (M.insertWith (<>)) (swap $ toNixLikeContextValue sc)

-- | Add 'StringContext's into the resulting set.
addStringContext
Expand Down
2 changes: 1 addition & 1 deletion tests/EvalTests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ sameFreeVars a xs =
assertEqual mempty (S.fromList xs) free'

maskedFiles :: [Path]
maskedFiles = []
maskedFiles = mempty

testDir :: Path
testDir = "tests/eval-compare"

0 comments on commit 34c24c7

Please sign in to comment.