Re: A language extension for dealing with Prelude.foldr vs Foldable.foldr and similar dilemmas

2013-05-27 Thread Edward A Kmett
This is basically what you get by default already with the raw proposal we've been talking about -- the Preludes in the haskell98 and haskell2010 remain unmodified by this proposal and are available for teaching use. Sent from my iPhone On May 27, 2013, at 8:53 PM, Andrew Farmer wrote: > I ge

Re: A language extension for dealing with Prelude.foldr vs Foldable.foldr and similar dilemmas

2013-05-27 Thread Andrew Farmer
I generally agree with Iavor's points, but if this is such an issue, why not make Prelude more general by default and have a special 'Prelude.Basic' with the more specific type signatures for beginners? The general Prelude would be implicitly imported as now, unless the module imported Prelude.Basi

Re: A language extension for dealing with Prelude.foldr vs Foldable.foldr and similar dilemmas

2013-05-27 Thread Chris Smith
I agree that it would be unfortunate to complicate the Prelude definitions of foldr and such by generalizing to type classes like Foldable. This proposal seems attractive to me as a way to reconcile abstraction when it's needed, and simplicity for beginners. However, it does seem like a common pa

Re: A language extension for dealing with Prelude.foldr vs Foldable.foldr and similar dilemmas

2013-05-27 Thread Daniel Gorín
Hi Iavor, On May 27, 2013, at 6:18 PM, Iavor Diatchki wrote: > Hello, > > > On Fri, May 24, 2013 at 12:42 AM, Daniel Gorín wrote: > On May 24, 2013, at 9:28 AM, Simon Peyton-Jones wrote: > >> > How about (in Haskell98) >> > >> > module Data.List ( foldr, ...) >> > import qualified

match_co: needs more cases

2013-05-27 Thread Evan Laforge
I made some strictifying changes and started getting this msg from ghc: match_co: needs more cases vector-0.10.0.1:Data.Vector.Generic.Mutable.MVector{tc r46} (Sym <(vector-0.10.0.1:Data.Vector.TFCo:R:MutableVector{tc r45})>) It's not just TimeVectorStorable.Sample (which is inde

Re: A language extension for dealing with Prelude.foldr vs Foldable.foldr and similar dilemmas

2013-05-27 Thread Iavor Diatchki
Hello, On Fri, May 24, 2013 at 12:42 AM, Daniel Gorín wrote: > On May 24, 2013, at 9:28 AM, Simon Peyton-Jones wrote: > > > How about (in Haskell98) > > > > module Data.List ( foldr, ...) > > import qualified Data.Foldable > > foldr :: (a -> b -> b) -> b -> [a] -> b > >