[Haskell-cafe] Using IsString with attoparsec

Felipe Almeida Lessa felipe.lessa at gmail.com
Fri Jan 28 18:12:40 CET 2011


On Wed, Jan 26, 2011 at 7:43 PM, Bryan O'Sullivan <bos at serpentine.com> wrote:
> On Tue, Jan 25, 2011 at 5:16 AM, Yitzchak Gale <gale at sefer.org> wrote:
>>
>> I suggest adding the following type-specialized variants to
>> Data.Attoparsec.Char8:
>>
>> (<*.) :: Applicative f => f a -> f ByteString -> f a
>> (<*.) = (<*)
>>
>> (.*>) :: Applicative f => f ByteString -> f a -> f a
>> (.*>) = (*>)
>
> Sounds reasonable. Send a patch?

Done!  It will be in attoparsec-text 0.8.2.0.

Bryan, I don't know how to give you a patch using Mercurial, so I've
used 'hg export -r 231 -o ../attoparsec_applicative.hg_export'.  The
patch is basically the same as attoparsec-text's.

Cheers! =)

-- 
Felipe.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: attoparsec_applicative.hg_export
Type: application/octet-stream
Size: 1906 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110128/a1614d3b/attachment.obj>


More information about the Haskell-Cafe mailing list