fileplow-0.1.0.0: Library to process and search large files or a collection of files
Safe HaskellNone
LanguageHaskell2010

Data.FilePlow.Ordered

Synopsis

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

Instances details
Show b => Show (SeekTarget b) Source # 
Instance details

Defined in Data.FilePlow.Ordered

Eq b => Eq (SeekTarget b) Source # 
Instance details

Defined in Data.FilePlow.Ordered

Methods

(==) :: SeekTarget b -> SeekTarget b -> Bool #

(/=) :: SeekTarget b -> SeekTarget b -> Bool #

seekTo :: (Ord b, Eq b, PlowHandle hdl) => hdl -> SeekTarget b -> (hdl -> IO b) -> IO Bool Source #