Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- packageToModule :: Text -> Text
- intercalateMap :: Text -> (a -> Text) -> [a] -> Text
- headToUpper :: Text -> Text
- tconcatMap :: (a -> Text) -> [a] -> Text
Documentation
packageToModule :: Text -> Text Source #
Creates module name from the name of the package
Ex: my-lovely-project
— MyLovelyProject
intercalateMap :: Text -> (a -> Text) -> [a] -> Text Source #
Converts every element of list into Text
and then joins every element
into single Text
like intercalate
.
headToUpper :: Text -> Text Source #
tconcatMap :: (a -> Text) -> [a] -> Text Source #
Convert every element of a list into text, and squash the results