Re: [Haskell-cafe] How to throw an error if using cabal-install version XYZ?

2013-05-23 Thread Carter Schonwald
constraining it to = 1.17 would be better while 1.18 isn't out yet.. On Thu, May 23, 2013 at 1:42 AM, Roman Cheplyaka r...@ro-che.info wrote: Perhaps I'm missing something, but why not just cabal-version: =1.18 ? It will constrain the Cabal version, not cabal-install, but judging

Re: [Haskell-cafe] question about type constructors

2013-05-23 Thread Roman Cheplyaka
* TP paratribulati...@free.fr [2013-05-23 00:34:57+0200] Hi, In the program I am trying to write, I have a problem that can be reduced to the following dummy example: -- {-# LANGUAGE GADTs #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE KindSignatures #-} {-#

Re: [Haskell-cafe] HTML framework for web-ui

2013-05-23 Thread Vlatko Basic
Hi Heinrich, Looks simple and interesting. I browsed the git, but not much docs yet. Just examples, or have I looked at wrong places? I see that API is still under heavy design. When do you expect the API might stabilize? (BTW, examples in Readme do not work.) vlatko Vlatko Basic wrote:

[Haskell-cafe] ANNOUNCE: new bridge! (prelude-prime)

2013-05-23 Thread Roman Cheplyaka
I liked Andreas's idea (cited below). Hence the new package prelude-prime. https://github.com/feuerbach/prelude-prime http://hackage.haskell.org/package/prelude-prime Pull requests are welcome, but let's stick to widely agreed changes (like the Foldable/Traversable one). I think one of the

Re: [Haskell-cafe] ANNOUNCE: new bridge! (prelude-prime)

2013-05-23 Thread Anton Kholomiov
I wish it was possible to use an extension CustomPrelude = Prelude.Prime In the cabal file 2013/5/23 Roman Cheplyaka r...@ro-che.info I liked Andreas's idea (cited below). Hence the new package prelude-prime. https://github.com/feuerbach/prelude-prime

Re: [Haskell-cafe] ANNOUNCE: new bridge! (prelude-prime)

2013-05-23 Thread Joachim Breitner
HI, Am Donnerstag, den 23.05.2013, 12:38 +0400 schrieb Anton Kholomiov: I wish it was possible to use an extension CustomPrelude = Prelude.Prime In the cabal file as far as I know, GHC simply issues an implicit import Prelude without package qualifiers. So you can get what you want by

Re: [Haskell-cafe] ANNOUNCE: new bridge! (prelude-prime)

2013-05-23 Thread Michael Snoyman
On Thu, May 23, 2013 at 11:38 AM, Anton Kholomiov anton.kholom...@gmail.com wrote: I wish it was possible to use an extension CustomPrelude = Prelude.Prime In the cabal file I'm not necessarily opposed to this idea, but I'd like to point out that it can have a negative impact on

Re: [Haskell-cafe] ANNOUNCE: new bridge! (prelude-prime)

2013-05-23 Thread Bas van Dijk
On 23 May 2013 11:26, Joachim Breitner m...@joachim-breitner.de wrote: So you can get what you want by not depending on base, but rather have prelude-prime re-export all modules from base plus its own Preldue. How would you re-export all base's modules from the prelude-prime package? I didn't

Re: [Haskell-cafe] ANNOUNCE: new bridge! (prelude-prime)

2013-05-23 Thread Joachim Breitner
Hi, Am Donnerstag, den 23.05.2013, 11:52 +0200 schrieb Bas van Dijk: On 23 May 2013 11:26, Joachim Breitner m...@joachim-breitner.de wrote: So you can get what you want by not depending on base, but rather have prelude-prime re-export all modules from base plus its own Preldue. How

Re: [Haskell-cafe] ANNOUNCE: new bridge! (prelude-prime)

2013-05-23 Thread Bas van Dijk
On 23 May 2013 11:54, Joachim Breitner m...@joachim-breitner.de wrote: Hi, Am Donnerstag, den 23.05.2013, 11:52 +0200 schrieb Bas van Dijk: On 23 May 2013 11:26, Joachim Breitner m...@joachim-breitner.de wrote: So you can get what you want by not depending on base, but rather have

Re: [Haskell-cafe] question about type constructors

2013-05-23 Thread TP
Roman Cheplyaka wrote: The rule of thumb is that you should never use IncoherentInstances. The proper way to do it is: data Person :: Gender - * where Person :: String - Person b Child :: (PrettyPrint a, PrettyPrint b) = String - Person a - Person b -

Re: [Haskell-cafe] question about type constructors

2013-05-23 Thread Roman Cheplyaka
* TP paratribulati...@free.fr [2013-05-23 13:23:36+0200] Roman Cheplyaka wrote: The rule of thumb is that you should never use IncoherentInstances. The proper way to do it is: data Person :: Gender - * where Person :: String - Person b Child ::

Re: [Haskell-cafe] ANNOUNCE: new bridge! (prelude-prime)

2013-05-23 Thread Manuel Gómez
On Thu, May 23, 2013 at 3:07 AM, Roman Cheplyaka r...@ro-che.info wrote: Pull requests are welcome, but let's stick to widely agreed changes (like the Foldable/Traversable one). I think one of the reasons why other Preludes haven't been adopted is because they were too radical. * Andreas Abel

Re: [Haskell-cafe] ANNOUNCE: new bridge! (prelude-prime)

2013-05-23 Thread Roman Cheplyaka
* Manuel Gómez tar...@gmail.com [2013-05-23 08:33:15-0430] On Thu, May 23, 2013 at 3:07 AM, Roman Cheplyaka r...@ro-che.info wrote: Pull requests are welcome, but let's stick to widely agreed changes (like the Foldable/Traversable one). I think one of the reasons why other Preludes haven't

Re: [Haskell-cafe] HTML framework for web-ui

2013-05-23 Thread Heinrich Apfelmus
Vlatko Basic wrote: Hi Heinrich, Looks simple and interesting. I browsed the git, but not much docs yet. Just examples, or have I looked at wrong places? Thanks! Only examples and Haddock documentation so far, though the latter is extensive. I see that API is still under heavy design. When

Re: [Haskell-cafe] How to throw an error if using cabal-install version XYZ?

2013-05-23 Thread Ryan Newton
Great! Thanks. I adapted that trick and it worked fine: https://github.com/rrnewton/haskell-lockfree-queue/blob/cb8ca1a5d8b4c02e45eeca54fbc66f0c58aeff56/AtomicPrimops/Setup.hs On Wed, May 22, 2013 at 11:53 PM, Carter Schonwald carter.schonw...@gmail.com wrote: Hey Ryan, I ran into a

[Haskell-cafe] How not to force ghci debugger but still know the _result?

2013-05-23 Thread haskell-cafe
Hi, As the subject says, I'd like to use the GHCI debugger to inspect the results of some functions. I tried to set :break-points on these functions and :step through them, but unless I use :force I never get to see the result of these functions. Is it possible to somehow break when the result

Re: [Haskell-cafe] Debugging embedded ruby interpreter

2013-05-23 Thread Simon Marechal
On 05/22/2013 11:36 PM, Simon Marechal wrote: Anyone has an idea on how I should approach this problem ? For future reference : I believe I have found the problem, and it was quite obvious ... When generating Ruby objects from Haskell, they are not referenced by anything in the interpreter.