cdornan / fmt

New formatting library
BSD 3-Clause "New" or "Revised" License
56 stars 6 forks source link

Add utf8F and so on? #19

Closed neongreen closed 3 years ago

neongreen commented 6 years ago

I don't think there's much point in adding the whole flock -- just utf8F and latin1F. @ChShersh would you mind doing that?

chshersh commented 6 years ago

@neongreen I don't mind. But you could you guide on some information regarding packages for such formatters? I don't really understand how this is different from id :: Text -> Text.

neongreen commented 6 years ago
utf8F :: ByteString -> Builder
latin1F :: ByteString -> Builder

I.e. they decode bytestrings into text (which can be done in different ways).

We would also need classes for them (like with base64) to support both strict and lazy variants.

chshersh commented 6 years ago

@neongreen Okay, I can try to do this.

cdornan commented 3 years ago

I have experimented with this on a private fork (for many months) and concluded in the end that it really wasn't worth the complexity.