Safe Haskell | None |
---|---|
Language | Haskell2010 |
Class for defining code metrics, and its simplest implementation - number of lines of code.
Documentation
class (CodeFragment c, Show m) => Metric m c where Source
Metric can be computed on a set of CodeFragment
fragments
and then shown.
Number of lines of code (example metric)
measureFor :: Metric m c => Proxy m -> Proxy c -> c -> m Source
Convenience function for fixing both the Metric
and CodeFragment
for which the metric is computed.