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.
-
conduit Data.Conduit.Combinators Convert a stream of arbitrarily-chunked textual data into a stream of data where each chunk represents a single line. Note that, if you have unknown or untrusted input, this function is unsafe, since it would allow an attacker to form lines of massive length and exhaust memory. Subject to fusion
-
conduit Data.Conduit.Combinators Same as linesUnbounded, but for ASCII/binary data. Subject to fusion
-
conduit Data.Conduit.Combinators Split a stream of arbitrarily-chunked data, based on a predicate on elements. Elements that satisfy the predicate will cause chunks to be split, and aren't included in these output chunks. Note that, if you have unknown or untrusted input, this function is unsafe, since it would allow an attacker to form chunks of massive length and exhaust memory.
-
conduit Data.Conduit.Combinators.Stream No documentation available.
enumBounded :: (MonadGen m, Enum a, Bounded a) => m ahedgehog Hedgehog.Gen Generates a random value from a bounded enumeration. This generator shrinks towards minBound. For example:
enumBounded :: Gen Bool
This is implemented in terms of the Enum class, and thus may be partial for integral types larger than Int, e.g. Word64.enumBounded :: (MonadGen m, Enum a, Bounded a) => m ahedgehog Hedgehog.Internal.Gen Generates a random value from a bounded enumeration. This generator shrinks towards minBound. For example:
enumBounded :: Gen Bool
This is implemented in terms of the Enum class, and thus may be partial for integral types larger than Int, e.g. Word64.constantBounded :: (Bounded a, Num a) => Range ahedgehog Hedgehog.Internal.Range Construct a range which is unaffected by the size parameter using the full range of a data type. A range from -128 to 127, with the origin at 0:
>>> bounds x (constantBounded :: Range Int8) (-128,127)
>>> origin (constantBounded :: Range Int8) 0
exponentialBounded :: (Bounded a, Integral a) => Range ahedgehog Hedgehog.Internal.Range Construct a range which is scaled exponentially relative to the size parameter and uses the full range of a data type.
>>> bounds 0 (exponentialBounded :: Range Int8) (0,0)
>>> bounds 50 (exponentialBounded :: Range Int8) (-11,11)
>>> bounds 99 (exponentialBounded :: Range Int8) (-128,127)
linearBounded :: (Bounded a, Integral a) => Range ahedgehog Hedgehog.Internal.Range Construct a range which is scaled relative to the size parameter and uses the full range of a data type.
>>> bounds 0 (linearBounded :: Range Int8) (0,0)
>>> bounds 50 (linearBounded :: Range Int8) (-64,64)
>>> bounds 99 (linearBounded :: Range Int8) (-128,127)
constantBounded :: (Bounded a, Num a) => Range ahedgehog Hedgehog.Range Construct a range which is unaffected by the size parameter using the full range of a data type. A range from -128 to 127, with the origin at 0:
>>> bounds x (constantBounded :: Range Int8) (-128,127)
>>> origin (constantBounded :: Range Int8) 0