Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class (Ord k, Value k) => Key k where Source #
narrow :: k -> k -> (k, k) Source #
Given two keys a
, b
such that 'a < b' compute two new keys a2
,
b2
such that 'a <= a2 < b2 <= b'. Obviously this always holds for 'a2
== a' and 'b2 = b' but for ByteString
s we can potentially find smaller
a2
and b2
. If a
equals b
, the behaviour is undefined.
Key Bool Source # | |
Key Double Source # | |
Key Float Source # | |
Key Int8 Source # | |
Key Int16 Source # | |
Key Int32 Source # | |
Key Int64 Source # | |
Key Integer Source # | |
Key Word8 Source # | |
Key Word16 Source # | |
Key Word32 Source # | |
Key Word64 Source # | |
Key () Source # | |
Key ByteString Source # | |
Key TxId Source # | |
Key PageId Source # | |
(Key a, Key b) => Key (a, b) Source # | |