Hoogle Search

Within LTS Haskell 24.64 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. uniformRM :: (UniformRange a, StatefulGen g m) => (a, a) -> g -> m a

    mwc-random System.Random.MWC

    Generates a value uniformly distributed over the provided range, which is interpreted as inclusive in the lower and upper bound.

    • uniformRM (1 :: Int, 4 :: Int) generates values uniformly from the set <math>
    • uniformRM (1 :: Float, 4 :: Float) generates values uniformly from the set <math>
    The following law should hold to make the function always defined:
    uniformRM (a, b) = uniformRM (b, a)
    

  2. uniformVector :: (PrimMonad m, StatefulGen g m, Uniform a, Vector v a) => g -> Int -> m (v a)

    mwc-random System.Random.MWC

    Generate a vector of pseudo-random variates. This is not necessarily faster than invoking uniform repeatedly in a loop, but it may be more convenient to use in some situations.

  3. uniformPermutation :: (StatefulGen g m, PrimMonad m, Vector v Int) => Int -> g -> m (v Int)

    mwc-random System.Random.MWC.Distributions

    Random variate generator for uniformly distributed permutations. It returns random permutation of vector [0 .. n-1]. This is the Fisher-Yates shuffle

  4. uniformShuffle :: (StatefulGen g m, PrimMonad m, Vector v a) => v a -> g -> m (v a)

    mwc-random System.Random.MWC.Distributions

    Random variate generator for a uniformly distributed shuffle (all shuffles are equiprobable) of a vector. It uses Fisher-Yates shuffle algorithm.

  5. uniformShuffleM :: (StatefulGen g m, PrimMonad m, MVector v a) => v (PrimState m) a -> g -> m ()

    mwc-random System.Random.MWC.Distributions

    In-place uniformly distributed shuffle (all shuffles are equiprobable)of a vector.

  6. iso8601DateFormat :: Maybe String -> String

    old-locale System.Locale

    Construct format string according to ISO-8601. The Maybe String argument allows to supply an optional time specification. E.g.:

    iso8601DateFormat Nothing            == "%Y-%m-%d"           -- i.e. YYYY-MM-DD
    iso8601DateFormat (Just "%H:%M:%S")  == "%Y-%m-%dT%H:%M:%S"  -- i.e. YYYY-MM-DDTHH:MM:SS
    

  7. rfc822DateFormat :: String

    old-locale System.Locale

    Format string according to RFC822.

  8. data NumberFormat

    aeson-pretty Data.Aeson.Encode.Pretty

    No documentation available.

  9. confNumFormat :: Config -> NumberFormat

    aeson-pretty Data.Aeson.Encode.Pretty

    No documentation available.

  10. prologueBefore :: Prologue -> [Miscellaneous]

    xml-conduit Text.XML

    No documentation available.

Page 390 of many | Previous | Next