@@ -242,6 +242,34 @@ instance Ord Bits64 where
242242 else if l > r then GT
243243 else EQ
244244
245+-- ------------------------------------------------------------- [ Bounded ]
246+
247+class MinBound b where
248+ -- | The lower bound for the type
249+ minBound : b
250+
251+class MaxBound b where
252+ -- | The upper bound for the type
253+ maxBound : b
254+
255+instance MinBound Bits16 where
256+ minBound = 0x0
257+
258+instance MaxBound Bits16 where
259+ maxBound = 0xffff
260+
261+instance MinBound Bits32 where
262+ minBound = 0x0
263+
264+instance MaxBound Bits32 where
265+ maxBound = 0xffffffff
266+
267+instance MinBound Bits64 where
268+ minBound = 0x0
269+
270+instance MaxBound Bits64 where
271+ maxBound = 0xffffffffffffffff
272+
245273
246274-- ------------------------------------------------------------- [ Fractionals ]
247275