Re: [Haskell-cafe] Hackage is down?

2012-08-12 Thread Henk-Jan van Tuyl
On Sat, 11 Aug 2012 21:10:24 +0200, Justin Greene justin.j.gre...@gmail.com wrote: Anyone have a download link for the haskell platform for windows? I can't find one with hackage down. This link depends on the OS you are using; I found the Haskell Platform page in the Web Archive[0].

Re: [Haskell-cafe] Data structure containing elements which are instances of the same type class

2012-08-12 Thread Heinrich Apfelmus
Antoine Latter wrote: It should be pretty easy to write an adapter function of type String - (Show a = a). The type needs to be String - (exists a. Show a = a) which is equivalent to String - (forall a. Show a = a - c) - c Here is the implementation of the adapter newtype

Re: [Haskell-cafe] Data structure containing elements which are instances of the same type class

2012-08-12 Thread Daniel Trstenjak
Hi Oleg, On Sat, Aug 11, 2012 at 08:14:47AM -, o...@okmij.org wrote: I'd like to point out that the only operation we can do on the first argument of MkFoo is to show to it. This is all we can ever do: we have no idea of its type but we know we can show it and get a String. Why not to

Re: [Haskell-cafe] Hackage is down?

2012-08-12 Thread Leonard Wörteler
Am 12.08.2012 08:14, schrieb Henk-Jan van Tuyl: [1] http://lambda.galois.com/hp-tmp/2011.2.0.1/ The current version is 2012.2.0.0, it can be found here: http://lambda.haskell.org/platform/download/current/ Cheers, Leo Wörteler ___ Haskell-Cafe

[Haskell-cafe] pattern matching vs if-then-else

2012-08-12 Thread Maarten Faddegon
Hi there, I am writing a toy compiler in Haskell to further my skills in functional programming. One of the functions I wrote is to determine the iteration count of a loop. I have a number of different test that I want to do and I find myself now testing some of these using pattern matching

Re: [Haskell-cafe] pattern matching vs if-then-else

2012-08-12 Thread Gregory Collins
On Sun, Aug 12, 2012 at 1:30 PM, Maarten Faddegon haskell-c...@maartenfaddegon.nl wrote: = if-- All stmts use the same lcv test_lcv == init_lcv test_lcv == update_lcv test_lcv == update_lcv' -- And the lcv is not updated in the body This

Re: [Haskell-cafe] Possible bug in Criterion or Statistics package

2012-08-12 Thread Aleksey Khudyakov
On 10.08.2012 22:20, Till Berger wrote: So I am not sure if this is a bug in Criterion itself, the Statistics package or any dependency or if I am doing something obviously wrong. I would be grateful if someone could look into this as it is holding me back from using Criterion for benchmarking

Re: [Haskell-cafe] hGetContents Illegal byte sequence / ghc-pkg

2012-08-12 Thread David Fox
On Sat, Aug 11, 2012 at 4:13 AM, Benjamin Edwards edwards.b...@gmail.comwrote: Hello café, I have a program that is crashing, and I have no idea why: module Main where import System.Process (readProcessWithExitCode) main :: IO () main = do _ - readProcessWithExitCode ghc-pkg

[Haskell-cafe] I use cabal install repa but then WinGHCi says module Data.Array.Rep.Algorithms.Ramdomish not found.

2012-08-12 Thread KC
-- -- Regards, KC ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Fixity declaration extension

2012-08-12 Thread Евгений Пермяков
fixity declaration has form *infix(l|r)? [Digit]* in haskell. I'm pretty sure, that this is not enough for complicated cases. Ideally, fixity declarations should have form *infix(l|r)? [Digit](\.(+|-)[Digit])** , with implied infinitely long repeated (.0) tail. This will allow fine tuning of

[Haskell-cafe] but module Data.Array.Rep.Algorithms.Ramdomish is in package repa-algorithms

2012-08-12 Thread Albert Y. C. Lai
On 12-08-12 02:18 PM, KC wrote: I use cabal install repa but then WinGHCi says module Data.Array.Rep.Algorithms.Ramdomish not found. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] but module Data.Array.Rep.Algorithms.Ramdomish is in package repa-algorithms

2012-08-12 Thread Brandon Allbery
email is the new twitter On Sun, Aug 12, 2012 at 3:21 PM, Albert Y. C. Lai tre...@vex.net wrote: On 12-08-12 02:18 PM, KC wrote: I use cabal install repa but then WinGHCi says module Data.Array.Rep.Algorithms.**Ramdomish not found. __**_

Re: [Haskell-cafe] I use cabal install repa but then WinGHCi says module Data.Array.Rep.Algorithms.Ramdomish not found.

2012-08-12 Thread Ivan Lazar Miljenovic
I think you need to install repa-algorithms. On 13 August 2012 04:18, KC kc1...@gmail.com wrote: -- -- Regards, KC ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Ivan Lazar

[Haskell-cafe] createProcess running non-existent programs

2012-08-12 Thread Niklas Hambüchen
I just came across the fact that running createProcess (proc asdfasdf []) with non-existing command asdfasdf returns perfectly fine handles. I would expect an exception. You can even hGetContents on stdout: You just get . I find this highly counter-intuitive. Is this intended? Thanks