[Haskell-cafe] Trouble with readProcess

2011-08-11 Thread Charles-Pierre Astolfi
Hi -cafe, I'm using readProcess and I don't know how to handle this issue: readProcess cmd [opt1,opt2] seems to execute the following: $ cmd opt1 opt2 That is usually fine, but I'm using an external program that doesn't understand the quotes, so I need to execute instead: $ cmd opt1 opt2 How

Re: [Haskell-cafe] Trouble with readProcess

2011-08-11 Thread Charles-Pierre Astolfi
: Quoth Charles-Pierre Astolfi c...@crans.org, readProcess cmd [opt1,opt2] seems to execute the following: $ cmd opt1 opt2 That is usually fine, but I'm using an external program that doesn't understand the quotes, so I need to execute instead: $ cmd opt1 opt2 How should I do that? I think

Re: [Haskell-cafe] Server hosting

2011-05-07 Thread Charles-Pierre Astolfi
I'm using tilaa.nl. It starts at ~10€/month and they are quite friendly and competent. -- Cp On Sat, May 7, 2011 at 13:53, Nicolas Wu nicolas...@gmail.com wrote: On 7 May 2011 13:52, Nicolas Wu nicolas...@gmail.com wrote: Then again, I haven't found many companies that list prices in GBP.)

Re: [Haskell-cafe] Can't install haskellnet with ghc7

2011-05-04 Thread Charles-Pierre Astolfi
Hanquez t...@snarc.org wrote:  On 04/26/2011 10:17 PM, Charles-Pierre Astolfi wrote: Hi -cafe, Did anybody managed to install haskellnet from hackage with ghc7? I tried on windows and mac and I get the following type error: [ 4 of 11] Compiling Network.HaskellNet.SMTP ( Network/HaskellNet

[Haskell-cafe] Can't install haskellnet with ghc7

2011-04-26 Thread Charles-Pierre Astolfi
Hi -cafe, Did anybody managed to install haskellnet from hackage with ghc7? I tried on windows and mac and I get the following type error: [ 4 of 11] Compiling Network.HaskellNet.SMTP ( Network/HaskellNet/SMTP.hs, dist/build/Network/HaskellNet/SMTP.o ) Network/HaskellNet/SMTP.hs:269:25:

[Haskell-cafe] OpenSSL question

2011-01-01 Thread Charles-Pierre Astolfi
Hi -cafe, I'm using the OpenSSL package, and I don't see any way to forge my own keys. (http://hackage.haskell.org/packages/archive/HsOpenSSL/0.9/doc/html/OpenSSL-RSA.html) For example, in the case of RSA, I'm given the exponent and modulus and I would like to create a public key from that, of

Re: [Haskell-cafe] Re: Codec.Crypto.RSA question

2010-11-21 Thread Charles-Pierre Astolfi
decrypt = toString . Crypto.decrypt privKey decrypt $ encrypt haskell = haskell Regards, Mathias Am 20.11.2010 13:15, schrieb Charles-Pierre Astolfi: Here's a working example: import qualified Codec.Crypto.RSA as Crypto import System.Random (mkStdGen) import Data.Binary (encode) import

Re: [Haskell-cafe] Re: Codec.Crypto.RSA question

2010-11-20 Thread Charles-Pierre Astolfi
Codec.Crypto.RSA and you're quoting Codec.Encryption.RSA, which is not the same thing; unfortunately I need to use RSAES-OAEP (SHA1) so I guess I have to stick with Codec.Crypto.RSA. Any ideas? -- Cp On Sat, Nov 20, 2010 at 12:50, Dominic Steinitz domi...@steinitz.org wrote: Charles-Pierre Astolfi cpa

[Haskell-cafe] Codec.Crypto.RSA question

2010-11-19 Thread Charles-Pierre Astolfi
Hi -cafe, I have a question about Codec.Crypto.RSA: how to enforce that (informally) decrypt . encrypt = id Consider this code: encrypt2 :: String - ByteString encrypt2 = fst . encrypt (mkStdGen n) pubKey encode decrypt2 :: ByteString - String decrypt2 = toString . decrypt privKey Since

[Haskell-cafe] Heterogenous network stream

2010-10-17 Thread Charles-Pierre Astolfi
Hi cafe, I'd like to implement a toy-protocol and I'm looking for the sanest way (for me) to do so. Here's what it looks like: The server receives, in that order: - Ascii string (4 bytes) - 16 bits int (2 bytes) - 8 bits int (1 byte) - UTF8 string (128 bytes) I tried to use hGetBuf, but I don't

[Haskell-cafe] Software architecture

2010-08-04 Thread Charles-Pierre Astolfi
Hey there, I'm searching for software designs in Haskell ; for example, I have a pretty good ideo of how I would arrange my modules/classes (in ocaml/(java/c++)) and how they would all fit together to create, say, a website aspirator. But I don't have any clue of the right way to do it with