Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data SeekTarget b
- = StLargerThan !b
- | StSmallerThan !b
- seekTo :: (Ord b, Eq b, PlowHandle hdl) => hdl -> SeekTarget b -> (hdl -> IO b) -> IO Bool
Documentation
data SeekTarget b Source #
place the file handling to a specific SeekTarget
provided a function that
extracts a value/entry at a specific position
StLargerThan !b | put the handle to the first entry that is larger than the provided value. Useful for files with entries in ASCending order |
StSmallerThan !b | put the handle to the first entry that is smaller than the provided value. Useful for files with entries in DESCending order |
Eq b => Eq (SeekTarget b) Source # | |
Show b => Show (SeekTarget b) Source # | |
seekTo :: (Ord b, Eq b, PlowHandle hdl) => hdl -> SeekTarget b -> (hdl -> IO b) -> IO Bool Source #