Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data CountPercent = CountPercent' {
- count :: Int
- percentage :: Double
- newCountPercent :: Int -> Double -> CountPercent
- countPercent_count :: Lens' CountPercent Int
- countPercent_percentage :: Lens' CountPercent Double
Documentation
data CountPercent Source #
Entity that comprises information of count and percentage.
See: newCountPercent
smart constructor.
CountPercent' | |
|
Instances
Create a value of CountPercent
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:count:CountPercent'
, countPercent_count
- Indicates the count of occurences of the given statistic.
$sel:percentage:CountPercent'
, countPercent_percentage
- Indicates the percentage of occurances of the given statistic.
countPercent_count :: Lens' CountPercent Int Source #
Indicates the count of occurences of the given statistic.
countPercent_percentage :: Lens' CountPercent Double Source #
Indicates the percentage of occurances of the given statistic.