text-zipper-0.10.1: A text editor zipper library

Safe HaskellNone
LanguageHaskell2010

Data.Text.Zipper.Generic

Documentation

class Monoid a => GenericTextZipper a where #

Minimal complete definition

singleton, drop, take, length, last, init, null, lines, toList

Methods

singleton :: Char -> a #

drop :: Int -> a -> a #

take :: Int -> a -> a #

length :: a -> Int #

last :: a -> Char #

init :: a -> a #

null :: a -> Bool #

lines :: a -> [a] #

toList :: a -> [Char] #

Instances
GenericTextZipper Text # 
Instance details

Defined in Data.Text.Zipper.Generic

Methods

singleton :: Char -> Text #

drop :: Int -> Text -> Text #

take :: Int -> Text -> Text #

length :: Text -> Int #

last :: Text -> Char #

init :: Text -> Text #

null :: Text -> Bool #

lines :: Text -> [Text] #

toList :: Text -> [Char] #

GenericTextZipper [Char] # 
Instance details

Defined in Data.Text.Zipper.Generic

Methods

singleton :: Char -> [Char] #

drop :: Int -> [Char] -> [Char] #

take :: Int -> [Char] -> [Char] #

length :: [Char] -> Int #

last :: [Char] -> Char #

init :: [Char] -> [Char] #

null :: [Char] -> Bool #

lines :: [Char] -> [[Char]] #

toList :: [Char] -> [Char] #

GenericTextZipper (Vector Char) # 
Instance details

Defined in Data.Text.Zipper.Generic