altfloat-0.2.2: Alternative floating point support for GHC.Source codeContentsIndex
Data.Floating.Types
Description
Definition of the core floating point types and basic manipulation of them.
Synopsis
data Double = D# Double#
data Float = F# Float#
class FloatConvert a b where
toFloating :: a -> b
Documentation
data Double Source
The Double type. This is expected to be an identical declaration to the one found in GHC.Prim. We avoid simply using GHC's type because we need to define our own class instances.
Constructors
D# Double#
show/hide Instances
data Float Source
The Float type.
Constructors
F# Float#
show/hide Instances
class FloatConvert a b whereSource
Coercion to floating point types.
Methods
toFloating :: a -> bSource
Convert to a floating point type. Conversions from integers and real types are provided, as well as conversions between floating point types. Conversions between floating point types preserve infinities, negative zeros and NaNs.
show/hide Instances
Produced by Haddock version 2.7.2