[Haskell-cafe] Re: Re: Reply-To: Header in Mailinglists

2010-11-21 Thread Malcolm Wallace
If the mailing list replaced Reply-To header it would required additional effort for responders instead of just pressing reply-to- all. If the list were to add a Reply-To: header, but only in the case where one was not already present, that would seem to me to be ideal. (None of the

Re: [Haskell-cafe] Same compiled program behaving differently when called from ghci and shell

2010-11-21 Thread Bulat Ziganshin
Hello Bruno, Sunday, November 21, 2010, 8:49:52 AM, you wrote: ghc --make ftest2.hs may be your versions of ghc and (win)ghci are different? the behavior was changed in latest versions afaik -- Best regards, Bulatmailto:bulat.zigans...@gmail.com

Re: [Haskell-cafe] Same compiled program behaving differently when called from ghci and shell

2010-11-21 Thread Bruno Damour
Le 21/11/10 11:03, Bulat Ziganshin a écrit : Hello Bruno, Sunday, November 21, 2010, 8:49:52 AM, you wrote: ghc --make ftest2.hs may be your versions of ghc and (win)ghci are different? the behavior was changed in latest versions afaik that would be surprising, I only installed Haskell

[Haskell-cafe] Tooltips on tree view rows

2010-11-21 Thread José Romildo Malaquias
Hello. I need the gtk_tree_view_set_tooltip_column from Gtk+, but it seems tht it has not been ported to gtk2hs. Is it the case? How can I easily add tooltips to rows in a TreeView? Regards, Romildo ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] trouble with HDBC-mysql on Mac OS X

2010-11-21 Thread Martijn van Steenbergen
Hi Mark, Chris, I had trouble as well but just found this pretty recent blog post by @freels which worked like a charm for me: http://matt.freels.name/2010/hdbc-mysql-os-x.html I hope it works for you as well! I've added Chris to the list of recipients because maybe he can incorporate the fix

Re: [Haskell-cafe] Same compiled program behaving differently when called from ghci and shell

2010-11-21 Thread Manlio Perillo
Il 21/11/2010 06:49, Bruno Damour ha scritto: Hello, I have a very strange (for me) problem that I manage to reduce to this : I have a small program that reads a file with 1 only character (è = e8) The program is ftest2.hs : [...] The only difference I can see is the codepage used. The

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

2010-11-21 Thread Charles-Pierre Astolfi
Thanks Mat, it works, but I still have a problem: I'm heavily using Data.Binary.encode for various types (Int32, Int8, String, Bool...) and I don't know how I should manage this using Data.ByteString.Lazy.Char8. -- Cp On Sat, Nov 20, 2010 at 22:35, Mathias Weber mat_we...@t-online.de wrote:

Re: [Haskell-cafe] Making HList's field access operators (#) and (.!.) left-associative?

2010-11-21 Thread Henning Thielemann
Josh Triplett schrieb: Hello, In experimenting with HList's very impressive extensible records, I discovered that the field access operators (#) and (.!.) have right associativity; this means I can't write (r # f1 # f2) to access field f2 of the record stored in field f1 of r. If (#) and

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

2010-11-21 Thread Mathias Weber
Then how about using encode (as in your original example) and decode (both from Data.Binary). IMO it's garanteed that decode . encode = id (at least for the standard types). ... decrypt :: Data.ByteString.Lazy.ByteString - String decrypt = decode . Crypto.decrypt privKey ... Am 21.11.2010

Re: [Haskell-cafe] Same compiled program behaving differently when called from ghci and shell

2010-11-21 Thread Bruno Damour
Le 21/11/10 17:21, Manlio Perillo a écrit : Il 21/11/2010 06:49, Bruno Damour ha scritto: Hello, I have a very strange (for me) problem that I manage to reduce to this : I have a small program that reads a file with 1 only character (è = e8) The program is ftest2.hs : The only difference I

Re: [Haskell-cafe] Same compiled program behaving differently when called from ghci and shell

2010-11-21 Thread Bruno Damour
Le 21/11/10 17:21, Manlio Perillo a écrit : Il 21/11/2010 06:49, Bruno Damour ha scritto: Hello, I have a very strange (for me) problem that I manage to reduce to this : I have a small program that reads a file with 1 only character (è = e8) The program is ftest2.hs : [...] The only

Re: [Haskell-cafe] Same compiled program behaving differently when called from ghci and shell

2010-11-21 Thread Manlio Perillo
Il 21/11/2010 19:06, Bruno Damour ha scritto: Le 21/11/10 17:21, Manlio Perillo a écrit : Il 21/11/2010 06:49, Bruno Damour ha scritto: Hello, I have a very strange (for me) problem that I manage to reduce to this : I have a small program that reads a file with 1 only character (è = e8) The

Re: [Haskell-cafe] Same compiled program behaving differently when called from ghci and shell

2010-11-21 Thread Manlio Perillo
Il 21/11/2010 19:28, Bruno Damour ha scritto: [...] Of course you're right but that was a surprise to me... G:\CODE\rlibchcp 1252 Page de codes active: 1252 G:\CODE\rlibftest3.exe è Just '1' G:\CODE\rlibchcp 850 Page de codes active : 850 G:\CODE\rlibftest3.exe è Just '2'

Re: [Haskell-cafe] Catching up on Time and Directory

2010-11-21 Thread Henning Thielemann
Yitzchak Gale schrieb: * Find every single package depending on old-time and get it to use time instead. Most importantly, base. These old- packages have been deprecated for long enough. Dump them. Once I tried to move from old-time to time. I quickly stop that attempt because the types

[Haskell-cafe] OT: Mailing list for testing email

2010-11-21 Thread Alexander Solla
Hi everybody This is kind of off topic, but mailing list related. I've been messing around with my email server, to help fix some issues with the new version of Postfix (with regards to my old configuration). I seem to be receiving email intermittently. Does anybody know of a mailing

Re: [Haskell-cafe] Same compiled program behaving differently when called from ghci and shell

2010-11-21 Thread Manlio Perillo
Il 21/11/2010 21:51, Manlio Perillo ha scritto: [...] There are 3 solutions: 1) open the file in binary mode 2) set the console codepage to 1252. I do this by changing the Command Prompt shortcut destination to: `%SystemRoot%\system32\cmd.exe /k chcp 1252` 3) explicitly set the

Re: [Haskell-cafe] Musings on type systems

2010-11-21 Thread wren ng thornton
On 11/20/10 6:33 AM, Ketil Malde wrote: Andrew Coppinandrewcop...@btinternet.com writes: Now here's an interesting thought. Haskell has algebraic data types. Algebraic because they are sum types of product types (or, equivilently, product types of sum types). Now I don't actually know what

Re: [Haskell-cafe] doesDirectoryExist is always returning False

2010-11-21 Thread wren ng thornton
On 11/20/10 9:55 AM, Marcelo Sousa wrote: Hi, I'm having currently a problem with System.Directory in my mac os. System Version: Mac OS X 10.6.5 Kernel Version: Darwin 10.5.0 Prelude System.Directory let dirTest = do {dir- getCurrentDirectory; doesDirectoryExist dir} Prelude

Re: [Haskell-cafe] Musings on type systems

2010-11-21 Thread Jacques Carette
On 21/11/2010 8:33 PM, wren ng thornton wrote: On 11/20/10 6:33 AM, Ketil Malde wrote: I guess this makes [X] an exponential type, although I don't remember seeing that term :-) Nope. (a-b) is the exponential type, namely |a-b| = |b|^|a|. [_] is just a solution to the recursive equation [x]

[Haskell-cafe] Yesod.Form: Password fields?

2010-11-21 Thread Ertugrul Soeylemez
Hello everybody, how can I create a password field using Yesod.Form? It doesn't seem to support them. Greets, Ertugrul -- nightmare = unsafePerformIO (getWrongWife = sex) http://ertes.de/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Wondering if this could be done.

2010-11-21 Thread Magicloud Magiclouds
Hi, For example, I have a data A defined. Then I want to add (+) and (-) operators to it, as a sugar (compared to addA/minusA). But * or other stuff defined in class Num is meanless to A. So I just do: (+) :: A - A - A (+) a b = A (elem1 a + elem1 b) (elem2 a + elem2 b) -- I got errors here,

[Haskell-cafe] Re: Wondering if this could be done.

2010-11-21 Thread Ertugrul Soeylemez
Magicloud Magiclouds magicloud.magiclo...@gmail.com wrote: For example, I have a data A defined. Then I want to add (+) and (-) operators to it, as a sugar (compared to addA/minusA). But * or other stuff defined in class Num is meanless to A. So I just do: (+) :: A - A - A (+) a b = A

Re: [Haskell-cafe] Wondering if this could be done.

2010-11-21 Thread Gregory Crosswhite
On 11/21/10 10:48 PM, Magicloud Magiclouds wrote: Hi, For example, I have a data A defined. Then I want to add (+) and (-) operators to it, as a sugar (compared to addA/minusA). But * or other stuff defined in class Num is meanless to A. So I just do: (+) :: A - A - A (+) a b = A (elem1

Re: [Haskell-cafe] Wondering if this could be done.

2010-11-21 Thread Christopher Done
Check out the awesome prelude, used to define ESDLs: http://tom.lokhorst.eu/2010/02/awesomeprelude-presentation-video On 22 November 2010 07:48, Magicloud Magiclouds magicloud.magiclo...@gmail.com wrote: Hi, For example, I have a data A defined. Then I want to add (+) and (-) operators to