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

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

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

2010-11-20 Thread Bruno Damour
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 : import IO import Data.Maybe tfind s = lookup (head s) $ zip ['\xe8', '\xde'] 12 main= do h-

[Haskell-cafe] Encoding problem (?)

2010-11-15 Thread Bruno Damour
Hello, I have this strange problem, with the same program (simple) behaving differently when run from console and from WinGHCi. Platform is Windows XP. Haskell Platform 2.0.0. The program : import IO import Data.Maybe tfind s = lookup (head s) $ zip \232\222 12 main = do h -