text-format icon indicating copy to clipboard operation
text-format copied to clipboard

Add formatter for strict text

Open dagit opened this issue 11 years ago • 3 comments

The first function I wrote to use text-format was this:

-- | A wrapper around `format` that returns a strict Text
sformat :: Params ps => Format -> ps -> Text
sformat f ps = toStrict (format f ps)

Perhaps that should be included in the library itself? (And the name format' might be more intuitive to folks).

dagit avatar Jan 08 '14 22:01 dagit

@dagit snap :)

jsdw avatar Apr 06 '15 19:04 jsdw

I wrote this as well.

timbod7 avatar May 01 '16 22:05 timbod7

I'd love it if the strict ones used ' as a suffix. That's by no means universal as a convention, but common enough that people would recognize it.

istathar avatar May 02 '16 23:05 istathar