Skip to content

Commit

Permalink
Update hlint (+ fix lints)
Browse files Browse the repository at this point in the history
  • Loading branch information
myme committed May 9, 2024
2 parents ddc643c + f7290ee commit 5a8d802
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install hlint hpack
sudo apt-get install hpack
- name: Hpack
run: hpack
Expand All @@ -54,6 +54,7 @@ jobs:
- name: Install dependencies
run: |
cabal update
cabal install hlint
cabal build --only-dependencies --enable-tests --enable-benchmarks
- name: Hlint
Expand Down
13 changes: 6 additions & 7 deletions src/Nixon/Config/JSON.hs
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,14 @@ empty =

instance FromJSON Config where
parseJSON = withObject "Config" $ \v ->
Config
<$> (maybe [] (fmap fromText) <$> v .:? "bin_dirs")
<*> v .:? "exact_match"
<*> v .:? "ignore_case"
(Config . maybe [] (fmap fromText) <$> (v .:? "bin_dirs"))
<*> (v .:? "exact_match")
<*> (v .:? "ignore_case")
<*> (maybe [] (fmap fromText) <$> v .:? "project_dirs")
<*> (maybe [] (fmap mkptype) <$> v .:? "project_types")
<*> v .:? "use_direnv"
<*> v .:? "use_nix"
<*> v .:? "terminal"
<*> (v .:? "use_direnv")
<*> (v .:? "use_nix")
<*> (v .:? "terminal")

newtype JsonProjectType = JsonProjectType ProjectType

Expand Down

0 comments on commit 5a8d802

Please sign in to comment.