purescript-strings icon indicating copy to clipboard operation
purescript-strings copied to clipboard

Add Justification functions

Open safareli opened this issue 8 years ago • 1 comments

https://www.stackage.org/haddock/lts-8.21/text-1.2.2.1/Data-Text.html#g:9

justifyRight :: Int -> Char -> String -> String
justifyLeft :: Int -> Char -> String -> String
center :: Int -> Char -> String -> String

Let me know if it's desired addition 🎈

safareli avatar Jul 07 '17 19:07 safareli

I'd be in favour. At the same time we should also add codepoint-based versions e.g. justifyRight :: Int -> CodePoint -> String -> String to Data.String.CodePoints.

hdgarrood avatar Aug 06 '17 16:08 hdgarrood