| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Dahdit.Sizes
Documentation
newtype ElementCount Source #
Constructors
| ElementCount | |
Fields | |
Instances
Constructors
| ByteCount | |
Fields | |
Instances
| Bounded ByteCount Source # | |
| Enum ByteCount Source # | |
Defined in Dahdit.Sizes Methods succ :: ByteCount -> ByteCount # pred :: ByteCount -> ByteCount # fromEnum :: ByteCount -> Int # enumFrom :: ByteCount -> [ByteCount] # enumFromThen :: ByteCount -> ByteCount -> [ByteCount] # enumFromTo :: ByteCount -> ByteCount -> [ByteCount] # enumFromThenTo :: ByteCount -> ByteCount -> ByteCount -> [ByteCount] # | |
| Num ByteCount Source # | |
| Integral ByteCount Source # | |
Defined in Dahdit.Sizes Methods quot :: ByteCount -> ByteCount -> ByteCount # rem :: ByteCount -> ByteCount -> ByteCount # div :: ByteCount -> ByteCount -> ByteCount # mod :: ByteCount -> ByteCount -> ByteCount # quotRem :: ByteCount -> ByteCount -> (ByteCount, ByteCount) # divMod :: ByteCount -> ByteCount -> (ByteCount, ByteCount) # | |
| Real ByteCount Source # | |
Defined in Dahdit.Sizes Methods toRational :: ByteCount -> Rational # | |
| Show ByteCount Source # | |
| Default ByteCount Source # | |
Defined in Dahdit.Sizes | |
| Eq ByteCount Source # | |
| Ord ByteCount Source # | |
class ByteSized a => StaticByteSized a where Source #
Methods
staticByteSize :: Proxy a -> ByteCount Source #
Instances
byteSizeViaStatic :: StaticByteSized a => a -> ByteCount Source #
class ByteSized a where Source #
Instances
newtype ViaStaticByteSized a Source #
Constructors
| ViaStaticByteSized | |
Fields
| |
Instances
| StaticByteSized a => ByteSized (ViaStaticByteSized a) Source # | |
Defined in Dahdit.Sizes Methods byteSize :: ViaStaticByteSized a -> ByteCount Source # | |
staticByteSizeFoldable :: (Foldable f, StaticByteSized a) => f a -> ByteCount Source #