| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.FilePlow.Ordered
- 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
Constructors
| 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 |
Instances
| 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 #