hs-inspector-0.2.0.0

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Inspector

Synopsis

Documentation

hasComposition :: Inspection Source

Inspection that tells whether a binding uses the composition operator . in its definition

hasGuards :: Inspection Source

Inspection that tells whether a binding uses guards in its definition

hasLambda :: Inspection Source

Inspection that tells whether a binding uses a lambda expression in its definition

hasDirectRecursion :: Inspection Source

Inspection that tells whether a binding is direct recursive

hasUsage :: String -> Inspection Source

Inspection that tells whether a binding uses the the given target binding in its definition

hasComprehension :: Inspection Source

Inspection that tells whether a binding uses lists comprehensions in its definition

hasBinding :: Inspection Source

Inspection that tells whether a top level binding exists

withBindingRhs :: ([HsRhs] -> a) -> Binding -> Code -> Maybe a Source

withCode :: ([HsDecl] -> a) -> Code -> Maybe a Source