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

Copyright | 2012 Eric Kow (Computational Linguistics Ltd.)
License | BSD3
Maintainer | eric.kow@gmail.com
Stability | experimental
Portability | portable
Safe Haskell | Safe
Language | Haskell98

NLP.Minimorph.Util

Description

Text utility functions.

Synopsis

- tTakeEnd :: Int -> Text -> Text
- tDropEnd :: Int -> Text -> Text
- (<>) :: Monoid m => m -> m -> m
- (<+>) :: Text -> Text -> Text
- tshow :: Show a => a -> Text

# 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`.

(<>) :: Monoid m => m -> m -> m infixr 6 #

An infix synonym for `mappend`.

Since: 4.5.0.0

(<+>) :: 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.