polysemy-scoped-fs-0.1.0.0: Well-typed filesystem operation effects.
Copyright(c) Hisaket VioletRed 2022
LicenseAGPL-3.0-or-later
Maintainerhisaket@outlook.jp
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Polysemy.SequentialAccess.Text

Description

This module is for sequential access to variable-width encoded text data.

In sequential access for variable-width encoded (e.g. UTF-8) text data, It is allowed to read data per line instead of by arbitrary size. And, seek operation is only allowed to both ends of a file.

This restriction of safety assumes no writing from others while opening a file. The behavior is undefined if the assumption is not satisfied. (An encoding corruption occurs typically.)

Synopsis

Documentation

data Line Source #

A singleton that represents the size from the current position to the next line break.

Constructors

Line 

Instances

Instances details
Eq Line Source # 
Instance details

Defined in Polysemy.SequentialAccess.Text

Methods

(==) :: Line -> Line -> Bool #

(/=) :: Line -> Line -> Bool #

Ord Line Source # 
Instance details

Defined in Polysemy.SequentialAccess.Text

Methods

compare :: Line -> Line -> Ordering #

(<) :: Line -> Line -> Bool #

(<=) :: Line -> Line -> Bool #

(>) :: Line -> Line -> Bool #

(>=) :: Line -> Line -> Bool #

max :: Line -> Line -> Line #

min :: Line -> Line -> Line #

Show Line Source # 
Instance details

Defined in Polysemy.SequentialAccess.Text

Methods

showsPrec :: Int -> Line -> ShowS #

show :: Line -> String #

showList :: [Line] -> ShowS #