| Copyright | (c) 2018 Francisco Vallarino |
|---|---|
| License | BSD-3-Clause (see the LICENSE file) |
| Maintainer | fjvallarino@gmail.com |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Monomer.Core.FromFractional
Description
Conversions from Fractional to several types. Used by dial, numericField, slider and other numeric related widgets.
Synopsis
- class Real a => FromFractional a where
- fromFractional :: (Real b, Fractional b) => b -> a
Documentation
class Real a => FromFractional a where Source #
Converts a Fractional number to the target type.
Methods
fromFractional :: (Real b, Fractional b) => b -> a Source #