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. arbitraryBoundedIntegral :: (Bounded a, Integral a) => Gen a

    massiv-test Test.Massiv.Utils

    Generates an integral number. The number is chosen uniformly from the entire range of the type. You may want to use arbitrarySizedBoundedIntegral instead.

  2. arbitraryBoundedRandom :: (Bounded a, Random a) => Gen a

    massiv-test Test.Massiv.Utils

    Generates an element of a bounded type. The element is chosen from the entire range of the type.

  3. arbitrarySizedBoundedIntegral :: (Bounded a, Integral a) => Gen a

    massiv-test Test.Massiv.Utils

    Generates an integral number from a bounded domain. The number is chosen from the entire range of the type, but small numbers are generated more often than big numbers. Inspired by demands from Phil Wadler.

  4. chooseBoundedIntegral :: (Bounded a, Integral a) => (a, a) -> Gen a

    massiv-test Test.Massiv.Utils

    A fast implementation of choose for bounded integral types.

  5. shrinkBoundedEnum :: (Bounded a, Enum a, Eq a) => a -> [a]

    massiv-test Test.Massiv.Utils

    Shrink an element of a bounded enumeration.

    Example

    data MyEnum = E0 | E1 | E2 | E3 | E4 | E5 | E6 | E7 | E8 | E9
    deriving (Bounded, Enum, Eq, Ord, Show)
    
    >>> shrinkBoundedEnum E9
    [E0,E5,E7,E8]
    
    >>> shrinkBoundedEnum E5
    [E0,E3,E4]
    
    >>> shrinkBoundedEnum E0
    []
    

  6. readIntegralBounded :: (Integral a, Bounded a, Typeable a, ParseField a) => ReadM a

    optparse-generic Options.Generic

    No documentation available.

  7. fifoBounded :: forall (m :: Type -> Type) cl1 cl2 a . Monad m => Int -> ResamplingBuffer m cl1 cl2 a (Maybe a)

    rhine FRP.Rhine.ResamplingBuffer.FIFO

    A bounded FIFO buffer that forgets the oldest values when the size is above a given threshold. If the buffer is empty, it will return Nothing.

  8. fifoUnbounded :: forall (m :: Type -> Type) cl1 cl2 a . Monad m => ResamplingBuffer m cl1 cl2 a (Maybe a)

    rhine FRP.Rhine.ResamplingBuffer.FIFO

    An unbounded FIFO buffer. If the buffer is empty, it will return Nothing.

  9. lifoBounded :: forall (m :: Type -> Type) cl1 cl2 a . Monad m => Int -> ResamplingBuffer m cl1 cl2 a (Maybe a)

    rhine FRP.Rhine.ResamplingBuffer.LIFO

    A bounded LIFO buffer that forgets the oldest values when the size is above a given threshold. If the buffer is empty, it will return Nothing.

  10. lifoUnbounded :: forall (m :: Type -> Type) cl1 cl2 a . Monad m => ResamplingBuffer m cl1 cl2 a (Maybe a)

    rhine FRP.Rhine.ResamplingBuffer.LIFO

    An unbounded LIFO buffer. If the buffer is empty, it will return Nothing.

Page 29 of many | Previous | Next