homplexity

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Homplexity.Metric

Synopsis

Documentation

class (CodeFragment c, Show m) => Metric m c where

Metric can be computed on a set of CodeFragment fragments and then shown.

Methods

measure :: c -> m

data LOC

Number of lines of code (example metric)

locT :: Proxy LOC

Proxy for passing LOC type as parameter.

measureAs :: Metric m c => Proxy m -> c -> m

Convenience function for fixing the Metric type.

measureFor :: Metric m c => Proxy m -> Proxy c -> c -> m

Convenience function for fixing both the Metric and CodeFragment for which the metric is computed.