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.

  1. fixST :: (a -> ST s a) -> ST s a

    base 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 = _|_.

  2. fixST :: (a -> ST s a) -> ST s a

    base 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 = _|_.

  3. fixST :: (a -> ST s a) -> ST s a

    base 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 = _|_.

  4. data Fixity

    base Data.Data

    Fixity of constructors

  5. Infix :: Fixity

    base Data.Data

    No documentation available.

  6. Prefix :: Fixity

    base Data.Data

    No documentation available.

  7. constrFixity :: Constr -> Fixity

    base Data.Data

    Gets the fixity of a constructor

  8. module Data.Fixed

    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
    

  9. newtype Fixed (a :: k)

    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
    

  10. MkFixed :: Integer -> Fixed (a :: k)

    base Data.Fixed

    No documentation available.

Page 22 of many | Previous | Next