Re: [Haskell-cafe] Visi.Pro -- My Next Thing

2011-11-20 Thread Simon Clarkstone
On Fri, Nov 18, 2011 at 5:04 PM, David Pollak feeder.of.the.be...@gmail.com wrote: I've launch a new, Haskell powered, adventure: Visi.Pro, Cloud Computing for the Rest of Us.  Visi.Pro will offer a HyperCard-like development environment that will empower normal people to build and run

Re: [Haskell-cafe] Superset of Haddock and Markdown

2011-11-20 Thread David Fox
On Fri, Nov 18, 2011 at 1:10 AM, Ertugrul Soeylemez e...@ertes.de wrote: Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: Wasn't there talk at one stage of integrating pandoc into haddock? I wouldn't mind Haddock depending on Pandoc, at least optionally (-fmarkdown-comments).  Taking

[Haskell-cafe] Decision procedure for foldr/foldl/foldl'?

2011-11-20 Thread David Fox
Does anyone have a quick way to decide which of the fold functions to use in a given situation? There are times when I would like to find out which to use in the quickest way possible, rather than reading a long explanation of why each one behaves the way it does.

Re: [Haskell-cafe] Decision procedure for foldr/foldl/foldl'?

2011-11-20 Thread Daniel Fischer
On Sunday 20 November 2011, 17:28:43, David Fox wrote: Does anyone have a quick way to decide which of the fold functions to use in a given situation? There are times when I would like to find out which to use in the quickest way possible, rather than reading a long explanation of why each

Re: [Haskell-cafe] Superset of Haddock and Markdown

2011-11-20 Thread Ivan Lazar Miljenovic
On 21 November 2011 03:19, David Fox dds...@gmail.com wrote: On Fri, Nov 18, 2011 at 1:10 AM, Ertugrul Soeylemez e...@ertes.de wrote: Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: Wasn't there talk at one stage of integrating pandoc into haddock? I wouldn't mind Haddock depending on

Re: [Haskell-cafe] Decision procedure for foldr/foldl/foldl'?

2011-11-20 Thread wren ng thornton
On 11/20/11 11:58 AM, Daniel Fischer wrote: On Sunday 20 November 2011, 17:28:43, David Fox wrote: Does anyone have a quick way to decide which of the fold functions to use in a given situation? There are times when I would like to find out which to use in the quickest way possible, rather

[Haskell-cafe] os.path.expanduser analogue

2011-11-20 Thread Ben Gamari
On the whole, the filepath package does an excellent job of providing basic path manipulation tools, one weakness is the inability to resolve ~/... style POSIX paths. Python implements this with os.path.expanduser. Perhaps a similar function might be helpful in filepath? Cheers, - Ben Possible

Re: [Haskell-cafe] os.path.expanduser analogue

2011-11-20 Thread Brandon Allbery
On Sun, Nov 20, 2011 at 20:36, Ben Gamari bgamari.f...@gmail.com wrote: expandUser :: FilePath - IO FilePath expandUser p = if ~/ `isPrefixOf` p then do u - getLoginName return $ u ++ drop 2 p else return p expandUser ~ =

Re: [Haskell-cafe] os.path.expanduser analogue

2011-11-20 Thread Ben Gamari
On Sun, 20 Nov 2011 21:02:30 -0500, Brandon Allbery allber...@gmail.com wrote: On Sun, Nov 20, 2011 at 20:36, Ben Gamari bgamari.f...@gmail.com wrote: [Snip] Although arguably there should be some error checking. Thanks for the improved implementation. I should have re-read my code before

[Haskell-cafe] thread blocked indefinitely in an STM transaction

2011-11-20 Thread Eric Wong
Hi everyone, I'm writing an API server using the snap framework with the new snaplet infrastructure. In order to connect with the database, I'm using snaplet-hdbc, HDBC, HDBC-mysql. (I'm using InnoDB for storage engine so it can process transaction). Every query is wrapped in the function

[Haskell-cafe] Lifted Spine View

2011-11-20 Thread bob zhang
Hi, all I tried to follow the program of the paper Scrap your boilerpolate Revolutions. Unfortunately, I found the program in the section lifted spine view does not compile in my GHC, could anybody point out where I am wrong? Many Thanks My code is posted herehttp://hpaste.org/54357

Re: [Haskell-cafe] Lifted Spine View

2011-11-20 Thread Antoine Latter
2011/11/20 bob zhang bobzhang1...@gmail.com: Hi, all    I tried to follow the program of the paper Scrap your boilerpolate Revolutions. Unfortunately, I found the program in the section lifted spine view does not compile in my GHC, could anybody  point out where I am wrong? Many Thanks My

Re: [Haskell-cafe] Interpreter with Cont

2011-11-20 Thread David Menendez
On Sat, Nov 19, 2011 at 3:29 PM, Felipe Almeida Lessa felipe.le...@gmail.com wrote: On Sat, Nov 19, 2011 at 6:08 PM, Tim Baumgartner baumgartner@googlemail.com wrote: I have not yet gained a good understanding of the continuation monad, but I wonder if it could be used here. What would a