mirror of
https://github.com/haskell-nix/hnix.git
synced 2024-09-11 06:55:38 +03:00
CI: HLint: fx action (#1087)
This commit is contained in:
parent
2c5777155b
commit
34c24c7050
6
.github/workflows/HLint.yml
vendored
6
.github/workflows/HLint.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -662,7 +662,7 @@ sameFreeVars a xs =
|
||||
assertEqual mempty (S.fromList xs) free'
|
||||
|
||||
maskedFiles :: [Path]
|
||||
maskedFiles = []
|
||||
maskedFiles = mempty
|
||||
|
||||
testDir :: Path
|
||||
testDir = "tests/eval-compare"
|
||||
|
Loading…
Reference in New Issue
Block a user