Copyright | (c) Hans Hoglund 2012 |
---|---|
License | BSD-style |
Maintainer | hans@hanshoglund.se |
Stability | experimental |
Portability | non-portable (TF,GNTD) |
Safe Haskell | None |
Language | Haskell2010 |
- class Augmentable a where
- augmentN :: Augmentable a => Int -> a -> a
Augmentable class
class Augmentable a where Source
Class of types that can be augmented.
quality (augment a) = augment (quality a) quality (diminish a) = diminish (quality a) augment . diminish = id
Increase the size of this interval by one.
Decrease the size of this interval by one.
Augmentable Double | |
Augmentable Integer | |
Augmentable a => Augmentable [a] | |
Integral a => Augmentable (Ratio a) | |
Augmentable a => Augmentable (b, a) |
augmentN :: Augmentable a => Int -> a -> a Source