weeder-2.1.3: Detect dead code
Safe HaskellNone
LanguageHaskell2010

Weeder

Synopsis

Analysis

data Analysis Source #

All information maintained by analyseHieFile.

Constructors

Analysis 

Fields

Instances

Instances details
Generic Analysis Source # 
Instance details

Defined in Weeder

Associated Types

type Rep Analysis :: Type -> Type #

Methods

from :: Analysis -> Rep Analysis x #

to :: Rep Analysis x -> Analysis #

type Rep Analysis Source # 
Instance details

Defined in Weeder

analyseHieFile :: MonadState Analysis m => HieFile -> m () Source #

Incrementally update Analysis with information in a HieFile.

emptyAnalysis :: Analysis Source #

The empty analysis - the result of analysing zero .hie files.

allDeclarations :: Analysis -> Set Declaration Source #

The set of all known declarations, including usages.

Reachability

data Root Source #

A root for reachability analysis.

Constructors

DeclarationRoot Declaration

A given declaration is a root.

ModuleRoot Module

All exported declarations in a module are roots.

Instances

Instances details
Eq Root Source # 
Instance details

Defined in Weeder

Methods

(==) :: Root -> Root -> Bool #

(/=) :: Root -> Root -> Bool #

Ord Root Source # 
Instance details

Defined in Weeder

Methods

compare :: Root -> Root -> Ordering #

(<) :: Root -> Root -> Bool #

(<=) :: Root -> Root -> Bool #

(>) :: Root -> Root -> Bool #

(>=) :: Root -> Root -> Bool #

max :: Root -> Root -> Root #

min :: Root -> Root -> Root #

reachable :: Analysis -> Set Root -> Set Declaration Source #

Determine the set of all declaration reachable from a set of roots.

Declarations

data Declaration Source #

Constructors

Declaration 

Fields