Binrep.Util
tshow :: Show a => a -> Text Source #
posIntToNat :: Int -> Natural Source #
Convert some Int i where i >= 0 to a Natural.
Int
i
i >= 0
Natural
This is intended for wrapping the output of length functions.
length
underflows if you call it with a negative Int :)
natVal'' :: forall a. KnownNat a => Natural Source #