On 03/19/2012 04:53 PM, Johan Tibell wrote:
> I've been thinking about this question as well. How about
> 
> class IsString s where
>     unpackCString :: Ptr Word8 -> CSize -> s

What's the Ptr Word8 supposed to contain? A UTF-8 encoded string?

Best regards
        Christian

-- 
|------- Dr. Christian Siefkes ------- christ...@siefkes.net -------
| Homepage: http://www.siefkes.net/ | Blog: http://www.keimform.de/
|    Peer Production Everywhere:       http://peerconomy.org/wiki/
|---------------------------------- OpenPGP Key ID: 0x346452D8 --
A choice of masters is not freedom.
        -- Bradley M. Kuhn and Richard M. Stallman, Freedom Or Power?

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Haskell-prime mailing list
Haskell-prime@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-prime

Reply via email to