logo       

Re: [Haskell] Re: ANNOUNCE: FPS - FastPackedStrings 0.2: msg#00104

lang.haskell.libraries

Subject: Re: [Haskell] Re: ANNOUNCE: FPS - FastPackedStrings 0.2

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise