Binary: Put -> Builder
Antoine Latter
aslatter at gmail.com
Thu Feb 12 10:40:19 EST 2009
On Thu, Feb 12, 2009 at 9:28 AM, Don Stewart <dons at galois.com> wrote:
> ross:
>> Here's a concrete suggestion: have Data.Binary.Put export the existing
>> function
>>
>> tell :: Builder -> Put
>>
>> and also
>>
>> execPut :: PutM a -> Builder
>> execPut = sndS . unPut
>
> What's the use case?
Maybe 'tell' could be renamed to 'putBuilder', thereby not exposing
the fact that the function is reaching into the guts of the
abstraction.
-Antoine
More information about the Libraries
mailing list