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. boundedBuilderOctetsBE :: IPv4 -> Builder 4

    ip Net.IPv4

    Encode IPv4 address to a sequence a 4 bytes with the first byte representing corresponding to the most significant byte in the address.

    >>> BB.run Nat.constant (IPv4.boundedBuilderOctetsBE (IPv4.fromOctets 0xc0 0xa8 0x02 0x1f))
    [0xc0, 0xa8, 0x02, 0x1f]
    

  2. boundedBuilderOctetsLE :: IPv4 -> Builder 4

    ip Net.IPv4

    Encode IPv4 address to a sequence a 4 bytes with the first byte representing corresponding to the least significant byte in the address.

    >>> BB.run Nat.constant (IPv4.boundedBuilderOctetsLE (IPv4.fromOctets 0xc0 0xa8 0x02 0x1f))
    [0x1f, 0x02, 0xa8, 0xc0]
    

  3. boundedBuilderUtf8 :: IPv4 -> Builder 15

    ip Net.IPv4

    Encode an IPv4 address as a bounded byte array builder.

    >>> BB.run Nat.constant (IPv4.boundedBuilderUtf8 (IPv4.fromOctets 192 168 2 14))
    [0x31, 0x39, 0x32, 0x2e, 0x31, 0x36, 0x38, 0x2e, 0x32, 0x2e, 0x31, 0x34]
    
    Note that period is encoded by UTF-8 as 0x2e.

  4. boundedBuilderUtf8 :: IPv6 -> Builder 39

    ip Net.IPv6

    Encodes the IPv6 address using zero-compression on the leftmost longest string of zeroes in the address.

    >>> BB.run Nat.constant $ IPv6.boundedBuilderUtf8 $ IPv6.fromWord16s 0xDEAD 0xBEEF 0x0 0x0 0x0 0x0 0x0 0x1234
    [0x64, 0x65, 0x61, 0x64, 0x3a, 0x62, 0x65, 0x65, 0x66, 0x3a, 0x3a, 0x31, 0x32, 0x33, 0x34]
    

  5. boundedBuilderUtf8 :: Mac -> Builder 17

    ip Net.Mac

    Encode a Mac address as colon-separated hexadecimal octets, preferring lowercase for alphabetical characters.

    >>> BBB.run Nat.constant $ Mac.boundedBuilderUtf8 $ Mac.mac 0xDEADBEEF1609
    [0x64, 0x65, 0x3a, 0x61, 0x64, 0x3a, 0x62, 0x65, 0x3a, 0x65, 0x66, 0x3a, 0x31, 0x36, 0x3a, 0x30, 0x39]
    

  6. boundedConversion :: (Ord a, Bounded b, Show a, Show b, Convertible a Integer, Convertible b Integer, Typeable a, Typeable b) => (a -> ConvertResult b) -> a -> ConvertResult b

    mixed-types-num Data.Convertible.Utils

    Utility function to perform bounds checking as part of a conversion. Does this be examining the bounds of the destination type, converting to the type of the source via safeConvert, comparing to the source value. Results in an error if the conversion is out of bounds.

  7. boundedEnumStdUniform :: forall a (m :: Type -> Type) . (Enum a, Bounded a) => RVarT m a

    random-fu Data.Random.Distribution.Uniform

    Compute a random value for a Bounded Enum type, between minBound and maxBound (inclusive)

  8. boundedStdUniform :: (Distribution Uniform a, Bounded a) => RVar a

    random-fu Data.Random.Distribution.Uniform

    Compute a random value for a Bounded type, between minBound and maxBound (inclusive for Integral or Enum types, in [minBound, maxBound) for Fractional types.)

  9. boundedStdUniformCDF :: (CDF Uniform a, Bounded a) => a -> Double

    random-fu Data.Random.Distribution.Uniform

    No documentation available.

  10. boundedCountMaybeNext :: (Eq a, Bounded a, Enum a) => Maybe a -> Maybe a

    countable Data.Countable

    No documentation available.

Page 14 of many | Previous | Next