Quantcast

binary twidling modules

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

binary twidling modules

Rustom Mody
I am not sure what would be the generic names I am asking for...
examples are the nearest I can get.

In perl there is pack/unpack http://perldoc.perl.org/perlpacktut.html
Likewise in python there is struct module http://docs.python.org/library/struct.html

What is/are the Haskell equivalents?

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: binary twidling modules

Don Stewart
Data.Binary or Data.Serialize perhaps? They provide encode/decode
functions for packing to binary formats:

 * cabal install binary
 * cabal install cereal

http://hackage.haskell.org/packages/archive/binary/0.5.0.2/doc/html/Data-Binary.html

On Sun, Mar 13, 2011 at 11:17 AM, rusi <[hidden email]> wrote:

> I am not sure what would be the generic names I am asking for...
> examples are the nearest I can get.
>
> In perl there is pack/unpack http://perldoc.perl.org/perlpacktut.html
> Likewise in python there is struct module http://docs.python.org/library/struct.html
>
> What is/are the Haskell equivalents?
>
> _______________________________________________
> Haskell-Cafe mailing list
> [hidden email]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Loading...