blob: af4e0b2e51ecbf2f29860cae37598318eee46c84 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
module Daffm.Utils where
import Data.Char (isSpace)
import qualified Data.Text as Text
trimStart :: Text.Text -> Text.Text
trimStart = Text.dropWhile isSpace
trimEnd :: Text.Text -> Text.Text
trimEnd = Text.dropWhileEnd isSpace
trim :: Text.Text -> Text.Text
trim = trimStart . trimEnd
|