Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
fixST :: (a -> ST s a) -> ST s abase Control.Monad.ST.Lazy Allow the result of an ST computation to be used (lazily) inside the computation. Note that if f is strict, fixST f = _|_.
fixST :: (a -> ST s a) -> ST s abase Control.Monad.ST.Lazy.Safe Allow the result of an ST computation to be used (lazily) inside the computation. Note that if f is strict, fixST f = _|_.
fixST :: (a -> ST s a) -> ST s abase Control.Monad.ST.Safe Allow the result of an ST computation to be used (lazily) inside the computation. Note that if f is strict, fixST f = _|_.
-
base Data.Data Fixity of constructors
-
base Data.Data No documentation available.
-
base Data.Data No documentation available.
constrFixity :: Constr -> Fixitybase Data.Data Gets the fixity of a constructor
-
This module defines a Fixed type for working with fixed-point arithmetic. Fixed-point arithmetic represents fractional numbers with a fixed number of digits for their fractional part. This is different to the behaviour of the floating-point number types Float and Double, because the number of digits of the fractional part of Float and Double numbers depends on the size of the number. Fixed point arithmetic is frequently used in financial mathematics, where they are used for representing decimal currencies. The type Fixed is used for fixed-point fractional numbers, which are internally represented as an Integer. The type Fixed takes one parameter, which should implement the typeclass HasResolution, to specify the number of digits of the fractional part. This module provides instances of the HasResolution typeclass for arbitrary typelevel natural numbers, and for some canonical important fixed-point representations. This module also contains generalisations of div, mod, and divMod to work with any Real instance. Automatic conversion between different Fixed can be performed through realToFrac, bear in mind that converting to a fixed with a smaller resolution will truncate the number, losing information.
>>> realToFrac (0.123456 :: Pico) :: Milli 0.123
-
base Data.Fixed The type of fixed-point fractional numbers. The type parameter specifies the number of digits of the fractional part and should be an instance of the HasResolution typeclass.
Examples
MkFixed 12345 :: Fixed E3
MkFixed :: Integer -> Fixed (a :: k)base Data.Fixed No documentation available.