Skip to content

Commit

Permalink
Make hlint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ffaf1 committed Oct 24, 2023
1 parent 80ab027 commit 940f303
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cabal/src/Distribution/PackageDescription/Check/Target.hs
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ checkBuildInfo cet ams ads bi = do
(extraFrameworkDirs bi)
mapM_ (checkLocalPathExist "include-dirs") (includeDirs bi)
mapM_
(checkLocalPathExist "hs-source-dirs")
(map getSymbolicPath $ hsSourceDirs bi)
(checkLocalPathExist "hs-source-dirs" . getSymbolicPath)
(hsSourceDirs bi)

-- Well formedness of BI contents (no `Haskell2015`, no deprecated
-- extensions etc).
Expand Down Expand Up @@ -436,8 +436,8 @@ checkBuildInfoPathsWellFormedness bi = do
(checkPath False "install-includes" PathKindFile)
(installIncludes bi)
mapM_
(checkPath False "hs-source-dirs" PathKindDirectory)
(map getSymbolicPath $ hsSourceDirs bi)
(checkPath False "hs-source-dirs" PathKindDirectory . getSymbolicPath)
(hsSourceDirs bi)
-- Possibly absolute paths.
mapM_ (checkPath True "includes" PathKindFile) (includes bi)
mapM_
Expand Down

0 comments on commit 940f303

Please sign in to comment.