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.
boundedBuilderOctetsBE :: IPv4 -> Builder 4ip 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]
boundedBuilderOctetsLE :: IPv4 -> Builder 4ip 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]
boundedBuilderUtf8 :: IPv4 -> Builder 15ip 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.boundedBuilderUtf8 :: IPv6 -> Builder 39ip 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]
boundedBuilderUtf8 :: Mac -> Builder 17ip 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]
-
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.
boundedEnumStdUniform :: forall a (m :: Type -> Type) . (Enum a, Bounded a) => RVarT m arandom-fu Data.Random.Distribution.Uniform Compute a random value for a Bounded Enum type, between minBound and maxBound (inclusive)
boundedStdUniform :: (Distribution Uniform a, Bounded a) => RVar arandom-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.)
boundedStdUniformCDF :: (CDF Uniform a, Bounded a) => a -> Doublerandom-fu Data.Random.Distribution.Uniform No documentation available.
boundedCountMaybeNext :: (Eq a, Bounded a, Enum a) => Maybe a -> Maybe acountable Data.Countable No documentation available.