Safe Haskell | None |
---|---|
Language | Haskell2010 |
Language.Haskell.Homplexity.Metric
Description
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.
Instances
Number of lines of code (example metric)
Instances
Enum LOC Source # | |
Eq LOC Source # | |
Integral LOC Source # | |
Num LOC Source # | |
Ord LOC Source # | |
Read LOC Source # | |
Real LOC Source # | |
Defined in Language.Haskell.Homplexity.Metric Methods toRational :: LOC -> Rational # | |
Show LOC Source # | |
CodeFragment c => Metric LOC c Source # | |
Defined in Language.Haskell.Homplexity.Metric |