| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Haskell.Homplexity.Metric
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
Instances
data LOC
Number of lines of code (example metric)
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.