Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Analysis = Analysis {}
- analyseHieFile :: MonadState Analysis m => HieFile -> m ()
- emptyAnalysis :: Analysis
- allDeclarations :: Analysis -> Set Declaration
- data Root
- reachable :: Analysis -> Set Root -> Set Declaration
- data Declaration = Declaration {}
Analysis
All information maintained by analyseHieFile
.
Analysis | |
|
Instances
Generic Analysis Source # | |
type Rep Analysis Source # | |
Defined in Weeder type Rep Analysis = D1 ('MetaData "Analysis" "Weeder" "weeder-2.1.3-3JzjfUXESMm9m3WjKkIK1Y" 'False) (C1 ('MetaCons "Analysis" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dependencyGraph") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Graph Declaration)) :*: (S1 ('MetaSel ('Just "declarationSites") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Declaration (Set RealSrcSpan))) :*: S1 ('MetaSel ('Just "implicitRoots") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set Declaration)))) :*: (S1 ('MetaSel ('Just "exports") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Module (Set Declaration))) :*: (S1 ('MetaSel ('Just "modulePaths") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Module FilePath)) :*: S1 ('MetaSel ('Just "moduleSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Module ByteString)))))) |
analyseHieFile :: MonadState Analysis m => HieFile -> m () Source #
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
A root for reachability analysis.
DeclarationRoot Declaration | A given declaration is a root. |
ModuleRoot Module | All exported declarations in a module are roots. |
reachable :: Analysis -> Set Root -> Set Declaration Source #
Determine the set of all declaration reachable from a set of roots.
Declarations
data Declaration Source #
Declaration | |
|
Instances
Eq Declaration Source # | |
Defined in Weeder (==) :: Declaration -> Declaration -> Bool # (/=) :: Declaration -> Declaration -> Bool # | |
Ord Declaration Source # | |
Defined in Weeder compare :: Declaration -> Declaration -> Ordering # (<) :: Declaration -> Declaration -> Bool # (<=) :: Declaration -> Declaration -> Bool # (>) :: Declaration -> Declaration -> Bool # (>=) :: Declaration -> Declaration -> Bool # max :: Declaration -> Declaration -> Declaration # min :: Declaration -> Declaration -> Declaration # | |
Show Declaration Source # | |
Defined in Weeder showsPrec :: Int -> Declaration -> ShowS # show :: Declaration -> String # showList :: [Declaration] -> ShowS # |