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

Weeder.Config

Synopsis

Documentation

data Config Source #

Configuration for Weeder analysis.

Constructors

Config 

Fields

  • rootPatterns :: Set String

    Any declarations matching these regular expressions will be added to the root set.

  • typeClassRoots :: Bool

    If True, consider all declarations in a type class as part of the root set. Weeder is currently unable to identify whether or not a type class instance is used - enabling this option can prevent false positives.

config :: Decoder Config Source #

A Dhall expression decoder for Config.

This parses Dhall expressions of the type { roots : List Text, type-class-roots : Bool }.