On Sat, May 2, 2020 at 10:53 PM Drew Adams <
address@hidden> wrote:
>
> [Please use plain-text, not HTML.]
>
> >> In Haskell, do you name every function with a
> >> prefix that advertises the type of its return
> >> value or one of its main arguments? No, of course
> >> not. How do you find functions that return or use
> >> a value of a given type? You check signatures
> >> or doc.
> >
> > Except if I'm missing somethign Haskell also groups related functions together:
https://urldefense.com/v3/__https://hackage.haskell.org/package/strings-1.1/docs/Data-Strings.html__;!!GqivPVa7Brio!LCpoSrliut7R6447MW0bxoZVqjxyDCCan6SeRxySTEZFcwKTa4KnqazRkAcDMCGd$>
> According to what you've said before, instead of
> those functions being named `text', `lazyText',
> `bytes', `lazyBytes', `charToByte', and
> `byteToChar' they should be named `string-text',
> `string-lazyText', `string-bytes',
> `string-lazyBytes', `string-charToByte',
> and `string-byteToChar'.
No, they all are in the namespace Data.Strings
I'm not an haskell expert so I might be wrong.