weeder-2.9.0: Detect dead code
Safe HaskellSafe-Inferred
LanguageHaskell2010

Weeder.Main

Description

This module provides an entry point to the Weeder executable.

Synopsis

Documentation

main :: IO () Source #

Parse command line arguments and into a Config and run mainWithConfig.

Exits with one of the listed Weeder exit codes on failure.

mainWithConfig :: String -> [FilePath] -> Bool -> Config -> IO () Source #

Run Weeder in the current working directory with a given Config.

This will recursively find all files with the given extension in the given directories, perform analysis, and report all unused definitions according to the Config.

Exits with one of the listed Weeder exit codes on failure.

getHieFiles :: String -> [FilePath] -> Bool -> IO [HieFile] Source #

Find and read all .hie files in the given directories according to the given parameters, exiting if any are incompatible with the current version of GHC. The .hie files are returned as a lazy stream in the form of a list.

Will rethrow exceptions as ExceptionInLinkedThread to the calling thread.