On Tue, Jan 30, 2007 at 09:52:01AM +1100, Donald Bruce Stewart wrote:
> For the syntax, and So that people can directly port their code from
> NewBinary.
> (The instances are basically unchanged).
>
> newtype PutM a = Put { unPut :: (a, Builder) }
> type Put = PutM ()
>
> It is always ().
BTW, the PutM type constructor is not exported, but I think it may be
useful in some uses on the library.
Best regards
Tomasz
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe