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. Thi

[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 res

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 r

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] ANNOUNCE: new bridge! (prelude-prime)

2013-05-23 Thread Roman Cheplyaka
* Manuel Gómez [2013-05-23 08:33:15-0430] > On Thu, May 23, 2013 at 3:07 AM, Roman Cheplyaka 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 th

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 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 [2013-05-2

Re: [Haskell-cafe] question about type constructors

2013-05-23 Thread Roman Cheplyaka
* TP [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 > > :: (PrettyPrint a,

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 -> Pe

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

2013-05-23 Thread Bas van Dijk
On 23 May 2013 11:54, Joachim Breitner wrote: > Hi, > > Am Donnerstag, den 23.05.2013, 11:52 +0200 schrieb Bas van Dijk: >> On 23 May 2013 11:26, Joachim Breitner wrote: >> > So you can get what you want by not >> > depending on base, but rather have prelude-prime re-export all modules >> > from

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 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

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

2013-05-23 Thread Bas van Dijk
On 23 May 2013 11:26, Joachim Breitner 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 know this was already

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 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 readability of an individua

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

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 > 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-pri

[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 reason