monomer-1.0.0.1: A GUI library for writing native Haskell applications.
Copyright(c) 2018 Francisco Vallarino
LicenseBSD-3-Clause (see the LICENSE file)
Maintainerfjvallarino@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Monomer.Core.FromFractional

Description

Conversions from Fractional to several types. Used by dial, numericField, slider and other numeric related widgets.

Synopsis

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 #

Instances

Instances details
FromFractional Double Source # 
Instance details

Defined in Monomer.Core.FromFractional

Methods

fromFractional :: (Real b, Fractional b) => b -> Double Source #

FromFractional Float Source # 
Instance details

Defined in Monomer.Core.FromFractional

Methods

fromFractional :: (Real b, Fractional b) => b -> Float Source #

FromFractional Int Source # 
Instance details

Defined in Monomer.Core.FromFractional

Methods

fromFractional :: (Real b, Fractional b) => b -> Int Source #

FromFractional Int8 Source # 
Instance details

Defined in Monomer.Core.FromFractional

Methods

fromFractional :: (Real b, Fractional b) => b -> Int8 Source #

FromFractional Int16 Source # 
Instance details

Defined in Monomer.Core.FromFractional

Methods

fromFractional :: (Real b, Fractional b) => b -> Int16 Source #

FromFractional Int32 Source # 
Instance details

Defined in Monomer.Core.FromFractional

Methods

fromFractional :: (Real b, Fractional b) => b -> Int32 Source #

FromFractional Int64 Source # 
Instance details

Defined in Monomer.Core.FromFractional

Methods

fromFractional :: (Real b, Fractional b) => b -> Int64 Source #

FromFractional Integer Source # 
Instance details

Defined in Monomer.Core.FromFractional

Methods

fromFractional :: (Real b, Fractional b) => b -> Integer Source #

FromFractional Rational Source # 
Instance details

Defined in Monomer.Core.FromFractional

Methods

fromFractional :: (Real b, Fractional b) => b -> Rational Source #

FromFractional Word Source # 
Instance details

Defined in Monomer.Core.FromFractional

Methods

fromFractional :: (Real b, Fractional b) => b -> Word Source #

FromFractional Word8 Source # 
Instance details

Defined in Monomer.Core.FromFractional

Methods

fromFractional :: (Real b, Fractional b) => b -> Word8 Source #

FromFractional Word16 Source # 
Instance details

Defined in Monomer.Core.FromFractional

Methods

fromFractional :: (Real b, Fractional b) => b -> Word16 Source #

FromFractional Word32 Source # 
Instance details

Defined in Monomer.Core.FromFractional

Methods

fromFractional :: (Real b, Fractional b) => b -> Word32 Source #

FromFractional Word64 Source # 
Instance details

Defined in Monomer.Core.FromFractional

Methods

fromFractional :: (Real b, Fractional b) => b -> Word64 Source #

FromFractional CFloat Source # 
Instance details

Defined in Monomer.Core.FromFractional

Methods

fromFractional :: (Real b, Fractional b) => b -> CFloat Source #

FromFractional CDouble Source # 
Instance details

Defined in Monomer.Core.FromFractional

Methods

fromFractional :: (Real b, Fractional b) => b -> CDouble Source #

HasResolution a => FromFractional (Fixed a) Source # 
Instance details

Defined in Monomer.Core.FromFractional

Methods

fromFractional :: (Real b, Fractional b) => b -> Fixed a Source #