Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-12 Thread Alfredo Di Napoli
> > Nice bridge between vim and tmux! Thanks! > Would you mind add supporting for `urxvtc'? > urxvtc's -e option is followed by a list of options instead of a string. > > urxvtc -e sh -c 'echo a' > xterm -e echo a > I would like to, and in fact I've already tried, but urxvt is trickier

Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-12 Thread Alfredo Di Napoli
You're welcome :) Using Cumino your workflow should be faster and leaner. I encourage to try it out and let me have feedback! Cheers, A. On 12 September 2012 21:43, Roman Cheplyaka wrote: > Ah, okay. I was just confused by the fact that it uses tmux, and thought > that I was misusing it. > > Ye

Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-12 Thread Ray
On Wed, Sep 12, 2012 at 01:03:49PM +, Alfredo Di Napoli wrote: > Hi everyone, > > in case you have missed it, I've released a Vim plugin called Cumino: > > http://adinapoli.github.com/cumino/ > > It does one simple thing: It allows communication between Vim and tmux, in > particular to a ghci s

Re: [Haskell-cafe] guards in applicative style

2012-09-12 Thread Ertugrul Söylemez
Brent Yorgey wrote: > However, guardA is not as useful as guard, and it is not possible to > do the equivalent of the example shown using a list comprehension with > a guard. The reason is that whereas monadic computations can make use > of intermediate computed values to decide what to do next,

Re: [Haskell-cafe] [Hackage] Bug report and proposal

2012-09-12 Thread Ivan Lazar Miljenovic
On 13 September 2012 04:53, Stayvoid wrote: > Hello, > > I found a bug: "source" points to the wrong page. [1] > > I know that bugs should be reported via Github. But I don't have an > account and don't want to create one. There might be others who don't > want to use Github. Why rely on external

Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-12 Thread Roman Cheplyaka
Ah, okay. I was just confused by the fact that it uses tmux, and thought that I was misusing it. Yes, I also usually keep ghci in a separate window (and I am an xmonad user, too). I just thought that this offers a different experience and wanted to try it out. Anyway, thanks for clarifying. On W

Re: [Haskell-cafe] Invitation to connect on LinkedIn

2012-09-12 Thread Steve Severance
My heart skipped a beat when I saw myself on here. Then I saw I was the target. For the record I am morally opposed to inbox harvesting, although LinkedIn keeps "recommending" that I do just that. Steve On Wed, Sep 12, 2012 at 11:49 AM, Brandon Allbery wrote: > On Wed, Sep 12, 2012 at 2:21 PM, d

Re: [Haskell-cafe] guards in applicative style

2012-09-12 Thread Brent Yorgey
Lorenzo is correct, but actually for the wrong reason. =) The *type* of guard is a historical accident, and the fact that it requires MonadPlus doesn't really tell us anything. Let's take a look at its implementation: guard :: (MonadPlus m) => Bool -> m () guard True = return

Re: [Haskell-cafe] Help a young graduate haskeller to land its dream job

2012-09-12 Thread Eugene Kirpichov
Hi Alfredo, You might look at the various bigdata companies. I was surprised by how many of them are using Scala or Clojure - it's definitely over 50%. Looks like FP is really gaining traction in this area. On Wed, Sep 12, 2012 at 11:48 AM, Alfredo Di Napoli wrote: > Hi everyone, > > If this mai

Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-12 Thread Brandon Allbery
On Wed, Sep 12, 2012 at 1:36 PM, Alfredo Di Napoli < alfredo.dinap...@gmail.com> wrote: > If such a possibility exists, > I would be happy to fix the urxvt support :) > Actually I went back through it and it should only be an issue if urxvtc is used; urxvt "should" always be standalone. Unless t

[Haskell-cafe] [Hackage] Bug report and proposal

2012-09-12 Thread Stayvoid
Hello, I found a bug: "source" points to the wrong page. [1] I know that bugs should be reported via Github. But I don't have an account and don't want to create one. There might be others who don't want to use Github. Why rely on external bug tracker? I assume that it has been chosen because of

Re: [Haskell-cafe] Invitation to connect on LinkedIn

2012-09-12 Thread Brandon Allbery
On Wed, Sep 12, 2012 at 2:21 PM, damodar kulkarni wrote: > Correct me if I am wrong, but by looking at the way the message is > created, I think, LinkedIn is acting a kind of spammer these days. Shall we > lodge protest against it as a community? > What happens is that anyone who joins is pushed

[Haskell-cafe] Help a young graduate haskeller to land its dream job

2012-09-12 Thread Alfredo Di Napoli
Hi everyone, If this mail sound strange to you, you are free to ignore it. My name is Alfredo Di Napoli and I'm a 24-year-old programmer from Rome, Italy. I've graduated in May and I'm currently working as an intern for a company involved in the defence field. In my spare time, though, I study f

Re: [Haskell-cafe] Invitation to connect on LinkedIn

2012-09-12 Thread Kristopher Micinski
I believe these are the effect of linkedin harvesting your email contacts, and then a blanket "invite all" link that you can click. Whether it's linkedin who's spamming, or the person who forgot to uncheck certain mailing lists, that's more of a moral debate.. kris On Wed, Sep 12, 2012 at 2:21 P

Re: [Haskell-cafe] Invitation to connect on LinkedIn

2012-09-12 Thread damodar kulkarni
Hi, Correct me if I am wrong, but by looking at the way the message is created, I think, LinkedIn is acting a kind of spammer these days. Shall we lodge protest against it as a community? As an aside, can we not automatically delete all messages to haskell mailing-lists whose "from" field contains

Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-12 Thread Alfredo Di Napoli
If such a possibility exists, I would be happy to fix the urxvt support :) Bear in mind, though, that the Cumino terminal is only needed for the Ghci session, so you can use your favourite terminal to run Vim :) A. > urxvt defaults to using a client-server model for all terminals, IIRC (we > hav

Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-12 Thread Brandon Allbery
On Wed, Sep 12, 2012 at 11:25 AM, Alfredo Di Napoli < alfredo.dinap...@gmail.com> wrote: > I'm not in front of the pc now, but afair the problem was related to > opening a new urxvt window FROM a running urxvt. > More details soon :) > urxvt defaults to using a client-server model for all termina

Re: [Haskell-cafe] Either Monad and Laziness

2012-09-12 Thread Francesco Mazzoli
At Wed, 12 Sep 2012 12:04:31 -0300, Eric Velten de Melo wrote: > It would be really awesome, though, if it were possible to use a > parser written in Parsec with this, in the spirit of avoiding code > rewriting and enhancing expressivity and abstraction. There is

Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-12 Thread Alfredo Di Napoli
Could you please tell me what your desired behaviour would be? In praticular, do you want a ghci session in another tab or in a tmux pane perhaps? Otherwise I can't see any viable way to let vim and ghci cooperate inside the SAME window. Bye, Alfredo Sent from my iPad On 12/set/2012, at 17:05,

Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-12 Thread Alfredo Di Napoli
Hi, I'm not in front of the pc now, but afair the problem was related to opening a new urxvt window FROM a running urxvt. More details soon :) Sent from my iPad On 12/set/2012, at 15:18, Matvey Aksenov wrote: > Are urxvt-related issues documented somewhere? > > On 09/12/2012 05:03 PM, Alfr

Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-12 Thread Roman Cheplyaka
So, suppose that I'm in a terminal vim session, and I want to start ghci (in the current terminal). What do I do? cc starts a new terminal, which is not what I want. On Wed, Sep 12, 2012 at 3:03 PM, Alfredo Di Napoli < alfredo.dinap...@gmail.com> wrote: > Hi everyone, > > in case you have missed

Re: [Haskell-cafe] Either Monad and Laziness

2012-09-12 Thread Eric Velten de Melo
On 12 September 2012 11:46, Eric Velten de Melo wrote: > Thanks for all the tips! The iteratees seem worth checking out. I'll > see what I can do and will report back if I come up with something. > > Eric > > On 12 September 2012 03:03, wrote: >> >>> I am currently trying to rewrite the Graphics

Re: [Haskell-cafe] guards in applicative style

2012-09-12 Thread Lorenzo Bolla
I'm no expert at all, but I would say "no". "guard" type is: guard :: MonadPlus m => Bool -> m () and "MonadPlus" is a monad "plus" (ehm...) mzero and mplus (http://en.wikibooks.org/wiki/Haskell/MonadPlus). On the other hand Applicative is "less" than a monad (http://www.haskell.org/haskellwiki/Ap

Re: [Haskell-cafe] Either Monad and Laziness

2012-09-12 Thread Eric Velten de Melo
Thanks for all the tips! The iteratees seem worth checking out. I'll see what I can do and will report back if I come up with something. Eric On 12 September 2012 03:03, wrote: > >> I am currently trying to rewrite the Graphics.Pgm library from hackage >> to parse the PGM to a lazy array. > > L

[Haskell-cafe] guards in applicative style

2012-09-12 Thread felipe zapata
Hi Haskellers, Suppose I have two list and I want to calculate the cartesian product between the two of them, constrained to a predicate. In List comprehension notation is just result = [ (x, y) | x <- list1, y <-list2, somePredicate x y ] or in monadic notation result = do x <- list1 y <- li

Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-12 Thread Matvey Aksenov
Are urxvt-related issues documented somewhere? On 09/12/2012 05:03 PM, Alfredo Di Napoli wrote: There are still some issues with some terminals (for example urxvt does not work right now) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http:/

[Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-12 Thread Alfredo Di Napoli
Hi everyone, in case you have missed it, I've released a Vim plugin called Cumino: http://adinapoli.github.com/cumino/ It does one simple thing: It allows communication between Vim and tmux, in particular to a ghci session. With Cumino you can fire-up Vim, load a ghci session and interact with i

Re: [Haskell-cafe] type variable in class instance

2012-09-12 Thread Corentin Dupont
If I understand, the SomeEvent event acts as a proxy to hide the diversity of the events? That's interesting. This way I don't have to use an heterogeneous list and a lot of casting... On Wed, Sep 12, 2012 at 7:44 AM, wrote: > > Let me see if I understand. You have events of different sorts: eve

Re: [Haskell-cafe] IO vs MonadIO

2012-09-12 Thread Ivan Lazar Miljenovic
On 12 September 2012 19:55, Ivan Lazar Miljenovic wrote: > On 12 September 2012 18:24, Sergey Mironov wrote: >> Hi. Just a brief question. System.IO functions are defined in IO monad >> and have signatures like Foo -> IO Bar. >> Would it be better to have all of them defined as (MonadIO m) => Foo

Re: [Haskell-cafe] IO vs MonadIO

2012-09-12 Thread Ivan Lazar Miljenovic
On 12 September 2012 18:24, Sergey Mironov wrote: > Hi. Just a brief question. System.IO functions are defined in IO monad > and have signatures like Foo -> IO Bar. > Would it be better to have all of them defined as (MonadIO m) => Foo > -> m Bar? What are the problems that would arise? That woul

[Haskell-cafe] IO vs MonadIO

2012-09-12 Thread Sergey Mironov
Hi. Just a brief question. System.IO functions are defined in IO monad and have signatures like Foo -> IO Bar. Would it be better to have all of them defined as (MonadIO m) => Foo -> m Bar? What are the problems that would arise? Sergey ___ Haskell-Cafe