Re: [Haskell-cafe] GHC and backwards compatibility

2013-08-19 Thread Joe Q
This is definitely an issue with the array package not setting the right minimum versions. You should email the maintainer. On Aug 19, 2013 11:05 AM, "Ketil Malde" wrote: > > I recently encountered the following problem: > > > --

Re: [Haskell-cafe] Strange IO sequence behaviour (Was: sequence causing stack overflow on pretty small lists)

2013-09-04 Thread Joe Q
To give a very casual explanation, both mains are of the form "do this a bunch of times and return the results". Your first is "do nothing and return the ()s", but importantly, it has to execute all those nothings. Your second is "print hello a bunch and return the ()s". The list it wants to event

Re: [Haskell-cafe] Strange IO sequence behaviour (Was: sequence causing stack overflow on pretty small lists)

2013-09-04 Thread Joe Q
Er, I seem to have misread and thought you were doing infinite replicateM, so that explanation doesn't completely address your question. That's what I get for reading on a phone! On Sep 4, 2013 4:11 PM, "Joe Q" wrote: > To give a very casual explanation, both mains are

Re: [Haskell-cafe] 9.3 - (2 * 4.5) => 0.3000000000000007

2013-01-16 Thread Joe Q
Welcome to IEEE floating point math! Wikipedia has a good article on the specification. If you want exact fractional numbers for your own purposes, there are a number of ways around the limits of floats. Rational will represent numbers internally as fractions, and still allow you to use the same

Re: [Haskell-cafe] Question about Newtype "op()" function arguments.

2013-06-07 Thread Joe Q
The phantom parameter solves the same problem as scoped type variables. Granted, if you find yourself in that kind of polymorphic soup you have deeper problems... On Jun 7, 2013 2:53 PM, "Tom Ellis" < tom-lists-haskell-cafe-2...@jaguarpaw.co.uk> wrote: > On Fri, Jun 07, 2013 at 07:08:19AM -0700, D