diff --git a/package.yaml b/package.yaml index cc692b3f..10fdec42 100644 --- a/package.yaml +++ b/package.yaml @@ -112,7 +112,7 @@ library: - yaml - reflection - code-page - + executables: xrefcheck: main: Main.hs diff --git a/src/Xrefcheck/Scan.hs b/src/Xrefcheck/Scan.hs index d1980d8e..f642113a 100644 --- a/src/Xrefcheck/Scan.hs +++ b/src/Xrefcheck/Scan.hs @@ -29,8 +29,9 @@ import Data.Reflection (Given) import Fmt (Buildable (..), nameF, (+|), (|+)) import System.Directory (doesDirectoryExist) import System.Directory.Tree qualified as Tree -import qualified System.FilePath as OsDependentFilePath -import System.FilePath.Posix (dropTrailingPathSeparator, equalFilePath, takeDirectory, takeExtension) +import System.FilePath qualified as OsDependentFilePath +import System.FilePath.Posix + (dropTrailingPathSeparator, equalFilePath, takeDirectory, takeExtension) import Xrefcheck.Core import Xrefcheck.Progress diff --git a/src/Xrefcheck/System.hs b/src/Xrefcheck/System.hs index 05c7d43b..213a50df 100644 --- a/src/Xrefcheck/System.hs +++ b/src/Xrefcheck/System.hs @@ -20,8 +20,9 @@ import Data.Coerce (coerce) import GHC.IO.Unsafe (unsafePerformIO) import System.Directory (canonicalizePath) import System.Environment (lookupEnv) -import System.FilePath.Posix (()) import System.FilePath.Glob qualified as Glob +import System.FilePath.Posix (()) + import Xrefcheck.Util (normaliseWithNoTrailing) -- | We can quite safely treat surrounding filesystem as frozen,