| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.FilePlow.Ordered
Synopsis
- 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 #
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) # | |
Defined in Data.FilePlow.Ordered | |
| Show b => Show (SeekTarget b) # | |
Defined in Data.FilePlow.Ordered Methods showsPrec :: Int -> SeekTarget b -> ShowS # show :: SeekTarget b -> String # showList :: [SeekTarget b] -> ShowS # | |
seekTo :: (Ord b, Eq b, PlowHandle hdl) => hdl -> SeekTarget b -> (hdl -> IO b) -> IO Bool #