Re: [Haskell-cafe] Backward compatibility

2013-05-03 Thread Tobias Dammers
On Fri, May 03, 2013 at 01:23:55PM +0300, Guy wrote: > That's what I thought of when I saw the original complaint - GHC is > too backwards compatible! There's far too much boilerplate because > of the Functor => Applicative => Monad mess. Float/Double being > Enums is ridiculous. None of this gets

Re: [Haskell-cafe] Backward compatibility

2013-05-03 Thread Tobias Dammers
On Fri, May 03, 2013 at 03:35:08PM +0100, Ozgur Akgun wrote: > Hi, > > On 3 May 2013 11:43, Tobias Dammers wrote: > > > > PS The proposal to fix Functor => Applicative => Monad has patches > > > attached for GHC and base, but the backwards compatibility

Re: [Haskell-cafe] Hackage checking maintainership of packages

2013-05-06 Thread Tobias Dammers
On Mon, May 06, 2013 at 08:14:59PM +0800, Niklas Hambüchen wrote: > On 06/05/13 20:06, Tillmann Rendel wrote: > > Is "a human clicked the check box" a good metric for "a human commits > > themselves to this package"? > > If the check box has the text "Do you want this thing to be called > 'maintai

Re: [Haskell-cafe] ANN: Robot - Simulate keyboard and mouse events under X11

2013-05-09 Thread Tobias Dammers
On Thu, May 09, 2013 at 01:36:52PM +1200, Chris Wong wrote: > > On Tue, May 7, 2013 at 5:18 AM, Jeanne-Kamikaze > wrote: > > Looks like an interesting library. Will it be able to read pixels from a > > window at some point? > > Not sure -- I have no idea how screen capturing works in X11. Callin

Re: [Haskell-cafe] whats with cabal and libgmp.so.3

2013-05-14 Thread Tobias Dammers
On Tue, May 14, 2013 at 01:16:44PM +0530, Rustom Mody wrote: > Today cabal suddenly started giving me errors that libgmp.so.3 is not found > Moving away my old .cabal makes it work again > > Any explanations? > > [I am on debian testing. I think the causing factor was that debian > switched major

Re: [Haskell-cafe] (no subject)

2013-06-10 Thread Tobias Dammers
On Mon, Jun 10, 2013 at 05:41:05PM +0530, Zed Becker wrote: > > Haskell, is arguably the best example of a design-by-committee language. You do realize that "design-by-committee" is generally understood to refer to the antipattern where a committee discusses a design to death and delivers an inc

Re: [Haskell-cafe] Automating Hackage accounts

2013-06-13 Thread Tobias Dammers
On Thu, Jun 13, 2013 at 09:44:03AM -0400, Andrew Pennebaker wrote: > Could we add an HTML form for creating new Hackage accounts? Right now, our > community is small enough that emailing r...@soi.city.ac.uk and waiting for > a manual response isn't too bad of a problem, but as we grow, it would be

Re: [Haskell-cafe] Automating Hackage accounts

2013-06-13 Thread Tobias Dammers
On Thu, Jun 13, 2013 at 05:07:38PM +0300, Mihai Maruseac wrote: > On Thu, Jun 13, 2013 at 5:02 PM, Tobias Dammers wrote: > > On Thu, Jun 13, 2013 at 09:44:03AM -0400, Andrew Pennebaker wrote: > >> Could we add an HTML form for creating new Hackage accounts? Right now, our >

Re: [Haskell-cafe] ANN: Nomyx 0.2 beta, the game where you can change the rules

2013-06-19 Thread Tobias Dammers
On Wed, Jun 19, 2013 at 01:18:54PM +0200, Corentin Dupont wrote: > Thanks Brent! I'm glad you like it. > You will win a lot of money if new players come :) > Indeed Brent proposed a rule that allows sponsorship: if you invite a > player in, you win 50 ECU... Joined a game, though I don't really ha

Re: [Haskell-cafe] <> error message

2013-06-22 Thread Tobias Dammers
On Sat, Jun 22, 2013 at 06:09:58AM +0300, Mihai Maruseac wrote: > On Sat, Jun 22, 2013 at 12:41 AM, Omari Norman > wrote: > > I compiled some code with GHC 7.6.3 that produces a simple error at runtime > > > > myProgramName: <> > > > > At which point the program exits with code 1. > > > > Is ther

Re: [Haskell-cafe] data constructor names

2013-06-22 Thread Tobias Dammers
On Sat, Jun 22, 2013 at 12:15:07PM +0100, Tom Ellis wrote: > On Sat, Jun 22, 2013 at 04:26:14AM -0500, Brian Lewis wrote: > > Say you write > > data Callback = Error ... | ... > [...] > > > > Then, later, you write > > data Error = ... > [...] > > > > They're both good names, but there's a confli

Re: [Haskell-cafe] tangential request...

2013-06-24 Thread Tobias Dammers
On Sun, Jun 23, 2013 at 09:18:18PM -0700, Mark Lentczner wrote: > Thanks all, I’ve got what I needed. > > Brief results; Big variety in window and text sizes, but very few font and > color choices. More than half the terminals seem to be basically default > settings. Well, there's only so many mo

Re: [Haskell-cafe] tangential request...

2013-06-24 Thread Tobias Dammers
On Mon, Jun 24, 2013 at 04:09:22PM +0100, Tom Ellis wrote: > On Mon, Jun 24, 2013 at 08:02:17AM -0700, Mark Lentczner wrote: > > And yet, just four fonts make up over 75% of the sample - and two of those > > are essentially identical! > > Inconsolata and Consolas? My bet: - Bitstream Vera Sans M

Re: [Haskell-cafe] Open Source project suitable for 2-3 persons this fall?

2013-07-05 Thread Tobias Dammers
There's one of my hobby projects that could use some manpower to bootstrap it into a production-quality tool. It's an HTML templating system; right now it reads input templates in one of two languages (one very declarative, very similar to Python's jinja2, the other being a locally-pure functional

Re: [Haskell-cafe] Alternative name for return

2013-08-06 Thread Tobias Dammers
It is a pure value in the context of the outer monad (the one you wrap it in). I'd say pure is still appropriate. On Aug 6, 2013 10:14 AM, "Tom Ellis" < tom-lists-haskell-cafe-2...@jaguarpaw.co.uk> wrote: > On Tue, Aug 06, 2013 at 10:03:04AM +0200, J. Stutterheim wrote: > > `putStrLn "Hi"` is not

Re: [Haskell-cafe] inv f g = f . g . f

2013-08-17 Thread Tobias Dammers
Note that at least for the dropWhile example, there is a specialized function, dropWhileEnd, which is most likely more efficient than reversing the list twice. On Aug 17, 2013 3:35 PM, "Tom Ellis" < tom-lists-haskell-cafe-2...@jaguarpaw.co.uk> wrote: > On Sat, Aug 17, 2013 at 11:11:07AM +0200, Chr

Re: [Haskell-cafe] Errors in non-monadic code

2013-08-19 Thread Tobias Dammers
Except that people generally don't seem to agree what constitutes 'exceptional', even when disregarding the python world... On Aug 19, 2013 9:24 PM, "Brandon Allbery" wrote: > On Mon, Aug 19, 2013 at 2:59 PM, wrote: > >> I'd say that if you were in the context of the IO monad, maybe you'd >> pre

Re: [Haskell-cafe] reasons why Template Haskell does not propose something similar to Python exec() or eval()

2013-08-24 Thread Tobias Dammers
IIRC you can use haskell-src-exts to parse a string into TH AST structures. There might even be a quasi-quoter for that; I don't have a real computer at hand right more, so you'll need to do some research of your own. On Aug 24, 2013 11:37 AM, "TP" wrote: > Hi everybody, > > I continue to learn a