minimorph-0.2.1.0: English spelling functions with an emphasis on simplicity.

Safe HaskellSafe
LanguageHaskell2010

NLP.Minimorph.Util

Description

Text utility functions.

Synopsis

Documentation

tTakeEnd :: Int -> Text -> Text Source #

tTakeEnd n t returns the last n letters of t.

tDropEnd :: Int -> Text -> Text Source #

tDropEnd n t drops the last n letters of t.

(<>) :: Semigroup a => a -> a -> a infixr 6 #

An associative operation.

(<+>) :: Text -> Text -> Text infixr 6 Source #

Separated by space unless one of them is empty (in which case just the non-empty one).

tshow :: Show a => a -> Text Source #

Show a value in Text format.