summoner-2.0.1.1: Tool for scaffolding fully configured batteries-included production-level Haskell projects.
Copyright(c) 2017-2019 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Summoner.Text

Description

Various helpful functions to work with Text

Synopsis

Documentation

endLine :: Text Source #

Endline symbol to use with neat-interpolation.

packageToModule :: Text -> Text Source #

Creates module name from the name of the package Ex: my-lovely-projectMyLovelyProject

moduleNameValid :: Text -> Bool Source #

Validate module name. It should be in the following formatTriple

Part1[.PartN]

intercalateMap :: Text -> (a -> Text) -> [a] -> Text Source #

Converts every element of list into Text and then joins every element into single Text like intercalate.

tconcatMap :: (a -> Text) -> [a] -> Text Source #

Convert every element of a list into text, and squash the results