String != [Char]

Christian Siefkes christian at siefkes.net
Mon Mar 19 17:02:30 CET 2012


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 ------- christian at 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?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://www.haskell.org/pipermail/haskell-prime/attachments/20120319/9c736196/attachment.pgp>


More information about the Haskell-prime mailing list