minimorph-0.2.1.0: English spelling functions with an emphasis on simplicity.
NLP.Minimorph.Util
Description
Text utility functions.
tTakeEnd :: Int -> Text -> Text Source #
tTakeEnd n t returns the last n letters of t.
tTakeEnd n t
n
t
tDropEnd :: Int -> Text -> Text Source #
tDropEnd n t drops the last n letters of t.
tDropEnd n 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.
Text