Skip to content

Commit

Permalink
Follow hlint suggestion, remove redundant do, NixOS#374.
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Sep 6, 2018
1 parent d950242 commit d389d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Distribution/Nixpkgs/Haskell/PackageSourceSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ cabalFromDirectory Nothing dir = do
useDhall <- liftIO $ doesFileExist (dir </> "package.dhall")
useHpack <- liftIO $ doesFileExist (dir </> "package.yaml")
if useDhall || useHpack
then do
then
hpackDirectory (if useDhall then CabalGenDhall else CabalGenHpack) dir
else do
cabals <- liftIO $ getDirectoryContents dir >>= filterM doesFileExist . map (dir </>) . filter (".cabal" `isSuffixOf`)
Expand Down

0 comments on commit d389d71

Please sign in to comment.