edits-0.1.1.0: show the differences between 2 pieces of Text using the Levenshtein distance
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.Text.Token

Description

This module helps parsing some text with delimited differences

Synopsis

Documentation

data Token Source #

A Token is used to enclose a piece of text to compare and delimiters showing where the text is different from another piece of text Start / End are markers for the beginning and end of that text

Constructors

Kept Text 
Delimiter Text 
Start 
End 

Instances

Instances details
Show Token Source # 
Instance details

Defined in Data.Text.Token

Methods

showsPrec :: Int -> Token -> ShowS #

show :: Token -> String #

showList :: [Token] -> ShowS #

Eq Token Source # 
Instance details

Defined in Data.Text.Token

Methods

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

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

showToken :: Token -> Text Source #

Show a Token by skipping Start/End if present

showTokens :: [Token] -> Text Source #

Show a list of tokens. Start/End are skipped