[Haskell] Re: ANNOUNCE: FPS - FastPackedStrings 0.2

Tomasz Zielonka tomasz.zielonka at gmail.com
Thu Apr 20 09:04:30 EDT 2006


On Thu, Apr 20, 2006 at 07:24:18PM +1000, Donald Bruce Stewart wrote:
> And with the magic RULE, you get:
> 
>     {-# RULES
>     "pack/packAddress" forall s# .
>                        pack (unpackCString# s#) = packAddress s#
>      #-}
> 
> such that:
>     FPS.pack "haskell"
> 
> usually gives you the right thing.

Cool! :-)

Best regards
Tomasz


More information about the Libraries mailing list