[Haskell-cafe] binary twidling modules

2011-03-13 Thread rusi
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?

Re: [Haskell-cafe] binary twidling modules

2011-03-13 Thread 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

[Haskell-cafe] ANN: hsmagick 0.5

2011-03-13 Thread Vincent Gerard
Hello Haskellers, I am currently taking over the maintainership of hsmagick, a FFI bindings library to ImageMagick. Therefore, I am pleased to announce the 0.5 release of hsmagick. http://hackage.haskell.org/package/hsmagick Major changes: -- * imageToBlob and blobToImage functions using

Re: [Haskell-cafe] [Haskell] Linker flags for foreign export.

2011-03-13 Thread Jason Dusek
I have managed to get both static and dynamic to work on Ubuntu; and I've set aside a repo on Github to collect notes on this stuff as I work out building on various systems. https://github.com/solidsnack/hso I need rpath for the dynamic-dynamic case on Ubuntu: ghc -shared

Re: [Haskell-cafe] Yesod 0.7.1 using GHC 7.0.2 on Arch Linux

2011-03-13 Thread Ertugrul Soeylemez
I know, but at least I can go on with development. I hope, the problem will be fixed soon. vagif.ve...@gmail.com wrote: No, it is not solved. With -fproduction flag you are loosing devel-server functionality. On Saturday, March 12, 2011 02:45:11 PM Ertugrul Soeylemez wrote: Oh, I just

Re: [Haskell-cafe] Yesod 0.7.1 using GHC 7.0.2 on Arch Linux

2011-03-13 Thread Krzysztof Skrzętnicki
You can also download binary tarball, untar, ./configure --prefix=$HOME/ghc-7.0.2, make install, export PATH=$PATH:$HOME/ghc-7.0.2 and you will be good to go. Best regards, Krzysztof Skrzętnicki On Mon, Mar 14, 2011 at 02:15, Ertugrul Soeylemez e...@ertes.de wrote: I know, but at least I can

Re: [Haskell-cafe] Data.ByteString.Lazy.ByteString vs Data.ByteString.Lazy.Internal.ByteString

2011-03-13 Thread C K Kashyap
Thanks Brandon, data Endian = Big | Little data Size = Eight | Sixteen | ThirtyTwo | SixtyFour type EncTuple = (Int,Size,Endian) My requirement is to write encode :: [EncTuple] - ByteString I'd like to use it with just the libraries that are part of the platform - and I am not a fan of using the

Re: [Haskell-cafe] Data.ByteString.Lazy.ByteString vs Data.ByteString.Lazy.Internal.ByteString

2011-03-13 Thread Daniel Fischer
On Monday 14 March 2011 05:45:04, C K Kashyap wrote: Thanks Brandon, data Endian = Big | Little data Size = Eight | Sixteen | ThirtyTwo | SixtyFour type EncTuple = (Int,Size,Endian) My requirement is to write encode :: [EncTuple] - ByteString Looks like a job for Data.Binary. I'd like

Re: [Haskell-cafe] Data.ByteString.Lazy.ByteString vs Data.ByteString.Lazy.Internal.ByteString

2011-03-13 Thread C K Kashyap
Looks like a job for Data.Binary. I'd like to use it with just the libraries that are part of the platform I forgot to mention, Data.Binary does not seem to be in the platform. Regards, Kashyap ___ Haskell-Cafe mailing list