[Haskell-cafe] a little parsec enhancement

2013-09-05 Thread Petr Pudlák
Hi, when thinking about this SO question , I couldn't find a combinator that allows a parser to /optionally/ fail without consuming input, or consume input and return its value. So I'm suggesting such a function: |-- | @emptyIf p@ parses @p@ and

Re: [Haskell-cafe] Tutorial on JS with Haskell: Fay or GHCJS?

2013-09-05 Thread Dmitry Vyal
On 09/04/2013 05:39 PM, Adam Bergmark wrote: Here are some points I'd like to emphasize in addition to the threads above, with the disclaimer that I'm the maintainer of Fay. Fay tries to be very simple, the code base is small (~4800 LoC). This really lowers the entry barrier for contributions

Re: [Haskell-cafe] a little parsec enhancement

2013-09-05 Thread Roman Cheplyaka
* Petr Pudlák [2013-09-05 11:18:25+0200] > Unfortunately |ParsecT| constructor isn't exported so I'm not able to > implement it outside /parsec/. No, but there's an 'mkPT' function which is equivalent to the ParsecT constructor. (Although I, too, wish the ParsecT constructor were exposed.) Roma

Re: [Haskell-cafe] ANN: Cabal v1.18.0 released

2013-09-05 Thread Paolo Giarrusso
On Wednesday, September 4, 2013 11:41:33 PM UTC+2, Yuri de Wit wrote: > Thanks for all the hard work! > > If you see this in OSX (#1009) while installing cabal 1.18: > > *Warning: could not create a symlink in /Users/lemao/Library/Haskell/bin > for* > *cabal because the file exists there already

Re: [Haskell-cafe] Haskell-Cafe Digest, Vol 121, Issue 8

2013-09-05 Thread Gregory Guthrie
> Hi all, > > On behalf of the cabal maintainers and contributors I'm proud to announce the > Cabal (and > cabal-install) 1.18.0 release. To install run > > cabal update && cabal install Cabal-1.18.0 cabal-install-1.18.0 > > With 854 commits since the last release there are two many improve

Re: [Haskell-cafe] ANN: Cabal v1.18.0 released

2013-09-05 Thread Yuri de Wit
It is easy enough to recreate the link manually or as easy to run cabal install again, but that is not the point here. The point is that it will bite the next dozen of unsuspecting users since, at first, they have no idea of what is going on. In any case, apologies for sending this in this thread

Re: [Haskell-cafe] Unexpected behaviour with send and send-buffer setting

2013-09-05 Thread Simon Yarde
Well I'm always happy to take a public pasting in return for the chance to learn something :) It's fair to say I didn't fully understand the implications of TCPs flow-control mechanisms re buffering capacity, and I've been grateful to be guided here. > On 4 Sep 2013, at 16:52, Bryan O'Sullivan

Re: [Haskell-cafe] Performance of delete-and-return-last-element

2013-09-05 Thread Petr Pudlák
Dne 09/01/2013 09:13 PM, Harald Bögeholz napsal(a): Am 31.08.13 14:35, schrieb Petr Pudlák: One solution would be to fold over a specific semigroup instead of a recursive function: |import Data.Semigroup import Data.Foldable(foldMap) import Data.Maybe(maybeToList) data Darle a =Darle {ge

Re: [Haskell-cafe] ANN: Cabal v1.18.0 released

2013-09-05 Thread Rogan Creswick
I ran into another oddity due to old build artifacts today -- it was easy to fix, but very confusing; cabal repl was exiting with "unrecognised command: repl". tl/dr; if you see this, delete the old 'dist' dir and re-run 'cabal configure'. Here's a snippit of my shell session to explain in more d

Re: [Haskell-cafe] ANN: Cabal v1.18.0 released

2013-09-05 Thread Johan Tibell
I pasted your report into the bug tracker: https://github.com/haskell/cabal/issues/1478 I don't know if you're on GitHub or not so I could link the report to your user. On Thu, Sep 5, 2013 at 8:16 AM, Rogan Creswick wrote: > I ran into another oddity due to old build artifacts today -- it was ea

[Haskell-cafe] Reminder to file Haddock bugs on Trac.

2013-09-05 Thread Mateusz Kowalczyk
This is just a friendly reminder that if you have any issues with Haddock that you would like to get looked at, you should probably be making your way to the Haddock Trac[1] now. If you already have open tickets, you can probably get them looked at if you reply to this thread. Unfortunately there

Re: [Haskell-cafe] ANN: Cabal v1.18.0 released

2013-09-05 Thread Johan Tibell
Hideyuki Tanaka was missing from the list of contributors (his patch was applied through me). His contribution made 'cabal update' faster! On Wed, Sep 4, 2013 at 2:11 PM, Johan Tibell wrote: > Hi all, > > On behalf of the cabal maintainers and contributors I'm proud to > announce the Cabal (and

[Haskell-cafe] ghc-mod v3.0.0

2013-09-05 Thread 山本和彦
Hi all, I have just uploaded ghc-mod v3.0.0 to Hackage. In this version, ghc-mod supports the sandbox feature of "cabal-install". Instead, it stopped supporting "cabal-dev". If you want to use ghc-mod v3.0.0, I would recommand to install cabal-install 1.18. The sandbox in your package is automati