packages feed

taskell-1.9.3.0: src/Taskell/IO/Config/Parser.hs

module Taskell.IO.Config.Parser where

import ClassyPrelude

import Data.Text as T (dropAround, strip)

noEmpty :: Text -> Maybe Text
noEmpty ""  = Nothing
noEmpty txt = Just txt

parseText :: Text -> Text
parseText = dropAround (== '"') . strip