Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
newtype ElementCount Source #
Instances
Instances
Bounded ByteCount Source # | |
Enum ByteCount Source # | |
Defined in Dahdit.Sizes 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 | |
Real ByteCount Source # | |
Defined in Dahdit.Sizes toRational :: ByteCount -> Rational # | |
Show ByteCount Source # | |
Default ByteCount Source # | |
Defined in Dahdit.Sizes | |
Eq ByteCount Source # | |
Ord ByteCount Source # | |
Defined in Dahdit.Sizes |
class ByteSized a => StaticByteSized a where Source #
staticByteSize :: Proxy a -> ByteCount Source #
Instances
byteSizeViaStatic :: StaticByteSized a => a -> ByteCount Source #
class ByteSized a where Source #
Instances
newtype ViaStaticByteSized a Source #
Instances
StaticByteSized a => ByteSized (ViaStaticByteSized a) Source # | |
Defined in Dahdit.Sizes byteSize :: ViaStaticByteSized a -> ByteCount Source # |
staticByteSizeFoldable :: (Foldable f, StaticByteSized a) => f a -> ByteCount Source #