Hoogle Search
Within LTS Haskell 24.58 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
hmatrix Numeric.LinearAlgebra.Static No documentation available.
module Data.Vector.Algorithms.
Radix This module provides a radix sort for a subclass of unboxed arrays. The radix class gives information on * the number of passes needed for the data type
- the size of the auxiliary arrays
- how to compute the pass-k radix of a value
- We choose to sort on r = 8 bits at a time
- A Word32 has b = 32 bits total
radix k e = (e `shiftR` (k*8)) .&. 255
-
vector-algorithms Data.Vector.Algorithms.Radix No documentation available.
radix :: Radix e => Int -> e -> Intvector-algorithms Data.Vector.Algorithms.Radix The radix function parameterized by the current pass
configPrefix :: Config -> Stringweigh Weigh No documentation available.
module Data.MonoTraversable.
Unprefixed The functions in Data.MonoTraversable are all prefixed with the letter o to avoid conflicts with their polymorphic counterparts. This module exports the same identifiers without the prefix, for all cases where the monomorphic variant loses no generality versus the polymorphic version. For example, olength is just as general as Data.Foldable.length, so we export length = length. By contrast, omap cannot fully subsume fmap or map, so we do not provide such an export.
dropPrefix :: (IsSequence seq, Eq (Element seq)) => seq -> seq -> seqmono-traversable Data.Sequences dropPrefix drops the given prefix from a sequence. It returns the original sequence if the sequence doesn't start with the given prefix.
> dropPrefix "foo" "foobar" "bar" > dropPrefix "abc" "foobar" "foobar"
dropSuffix :: (IsSequence seq, Eq (Element seq)) => seq -> seq -> seqmono-traversable Data.Sequences dropSuffix drops the given suffix from a sequence. It returns the original sequence if the sequence doesn't end with the given suffix.
> dropSuffix "bar" "foobar" "foo" > dropSuffix "abc" "foobar" "foobar"
ensurePrefix :: (Eq (Element seq), IsSequence seq) => seq -> seq -> seqmono-traversable Data.Sequences ensurePrefix will add a prefix to a sequence if it doesn't exist, and otherwise have no effect.
> ensurePrefix "foo" "foobar" "foobar" > ensurePrefix "abc" "foobar" "abcfoobar"
ensureSuffix :: (Eq (Element seq), IsSequence seq) => seq -> seq -> seqmono-traversable Data.Sequences Append a suffix to a sequence, unless it already has that suffix.
> ensureSuffix "bar" "foobar" "foobar" > ensureSuffix "abc" "foobar" "foobarabc"