Bikeshedding the cstringLength name?

Viktor Dukhovni <[email protected]>
Newsgroups gmane.comp.lang.haskell.libraries
Message-ID <[email protected]>
An equivalent function of course already exists outside base:

    $ hoogle 'CString -> IO CSize'
    Data.ByteString.Internal c_strlen :: CString -> IO CSize

unsurprisingly defined as:

    foreign import ccall unsafe "string.h strlen" c_strlen
        :: CString -> IO CSize

Would it make sense to give the proposed new Foreign.C.Types function
the same "c_strlen" name?  And then at some point in the future,
Data.ByteString.Internal can just re-export it?

Would using `cstringLength`, as proposed, be too confusable with the
`cstringLength#` primop?

-- 
    Viktor.
_______________________________________________
Libraries mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.