Re: [Haskell-cafe] Generating Code

2011-12-10 Thread Iustin Pop
On Fri, Dec 09, 2011 at 10:30:18PM +0100, L Corbijn wrote: The major set of problems for using template haskell is that it doesn't have the correct features, or better said it tries to solve another problem. Template haskell generates code into an existing module, while for this problem there

[Haskell-cafe] Alternative STM implementation

2011-12-10 Thread Daniel Waterworth
Hi, This morning I have written an STM implementation as a learning exercise. I thought I'd share it here to get some critique and because it might be useful to others (consider it as being in the public domain). I haven't tested it thoroughly, so there may be edge cases that haven't been thought

Re: [Haskell-cafe] Generating Code

2011-12-10 Thread Geoffrey Mainland
On 12/10/2011 09:38, Iustin Pop wrote: On Fri, Dec 09, 2011 at 10:30:18PM +0100, L Corbijn wrote: The major set of problems for using template haskell is that it doesn't have the correct features, or better said it tries to solve another problem. Template haskell generates code into an

Re: [Haskell-cafe] Generating Code

2011-12-10 Thread Geoffrey Mainland
On 12/09/2011 21:47, Stephen Tetley wrote: Geoffrey Mainland did significant work generating C with his GHC quasi quote extension. I'm not sure the status or availability of the code but there was a good Haskell Workshop paper describing it. In case anybody is interested, language-c-quote on

[Haskell-cafe] Beginning Data.Lens tutorial

2011-12-10 Thread Henry Laxen
Dear Group, If you haven't used lenses before, (as I hadn't until recently) you may find this helpful: http://www.nadineloveshenry.com/haskell/lensExamples.html Best wishes, Henry Laxen ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Generating Code

2011-12-10 Thread L Corbijn
On Sat, Dec 10, 2011 at 11:12 AM, Vo Minh Thu not...@gmail.com wrote: 2011/12/9 Stephen Tetley stephen.tet...@gmail.com: Geoffrey Mainland did significant work generating C with his GHC quasi quote extension. I'm not sure the status or availability of the code but there was a good Haskell

Re: [Haskell-cafe] Generating Code

2011-12-10 Thread L Corbijn
On Sat, Dec 10, 2011 at 1:59 PM, Geoffrey Mainland mainl...@apeiron.net wrote: On 12/10/2011 09:38, Iustin Pop wrote: On Fri, Dec 09, 2011 at 10:30:18PM +0100, L Corbijn wrote: The major set of problems for using template haskell is that it doesn't have the correct features, or better said it

[Haskell-cafe] Parallel Matrix Multiplication

2011-12-10 Thread mukesh tiwari
Hello all I am trying to learn parallel Haskell and I have gone through couple of resources ( Real world Haskell and http://research.microsoft.com/en-us/um/people/simonpj/papers/parallel/AFP08-notes.pdf ). I understood par and pseq and I wrote matrix multiplication using these two function but it

Re: [Haskell-cafe] Hexpat: Lazy I/O problem with huge input files

2011-12-10 Thread thinkingeric
Hi Aleks, Did you (or anyone) ever resolve this? I'm having precisely the same problem. Eric Aleksandar Dimitrov wrote Hello Daniel, I don't know Hexpat at all, so I can only guess. Perhaps due to the laziness of let-bindings, mError keeps a reference to the entire tuple, thus

[Haskell-cafe] Munich Haskell Meeting

2011-12-10 Thread Heinrich Hördegen
Dear all, the doodle poll for the next Haskell get-together indicates, that we should meet on Tuesday, 13 Dec 2011, 19h30 at Cafe Puck: http://www.doodle.com/x6x4sgnemc35myq3 I will reserve tables. For all those who cannot join, sorry, but we hope to meet you next year. Check out the

[Haskell-cafe] [ANNOUNCEMENT] xmobar 0.14

2011-12-10 Thread Jose A. Ortega Ruiz
I'm happy to announce the release of xmobar 0.14. Xmobar is a text-based, minimalistic status bar for linuxy systems, written in Haskell. See http://projects.haskell.org/xmobar for details. Many, many thanks to the many, many contributors, and apologies for taking so long to put their code and

Re: [Haskell-cafe] Parallel Matrix Multiplication

2011-12-10 Thread mukesh tiwari
I changed it bit and use pseq to force the computation but still its non of the sparks are converting. import Data.List import Control.Parallel parHelp :: ( Num a ) = [ a ] - [ a ] - a parHelp [] [] = 0 parHelp ( x : xs ) ( y : ys ) = ret where ret = par a ( pseq b ( a + b ) ) where

Re: [Haskell-cafe] [ANNOUNCEMENT] xmobar 0.14

2011-12-10 Thread Peter Simons
Hi Jose, I'm happy to announce the release of xmobar 0.14. previous versions of xmobar used to compile fine with GHC 6.10.4, but the new version no longer does: src/Parsers.hs:163:52: Couldn't match expected type `Char' against inferred type `[Char]' Expected type:

Re: [Haskell-cafe] [ANNOUNCEMENT] xmobar 0.14

2011-12-10 Thread Brandon Allbery
On Sat, Dec 10, 2011 at 18:25, Peter Simons sim...@cryp.to wrote: previous versions of xmobar used to compile fine with GHC 6.10.4, but the new version no longer does: src/Parsers.hs:163:52: Couldn't match expected type `Char' against inferred type `[Char]' Expected type:

Re: [Haskell-cafe] web-routes-quasi: Generating a route type

2011-12-10 Thread Michael Snoyman
Hi, web-routes-quasi is actually unmaintained. Yesod no longer uses it, instead using some internal code. If you'd like to use it, feel free. If you need to make any changes, you can feel free to release new versions of it as well. FWIW, I think you're looking for the createRoutes function.

[Haskell-cafe] Haskell Summers of Code retrospective (updated for 2011)

2011-12-10 Thread Gwern Branwen
The Wheel turns, and months come and pass, leaving blog posts that fade into 404s; a wind rose in Mountain View, whispering of the coming Winter... Tonight I sat down and finally looked into the 2011 SoCs to see how they turned out and judge them according to my whimsically arbitrary and

[Haskell-cafe] ANNOUNCE: Anansi 0.4.2 (literate programming pre-processor)

2011-12-10 Thread John Millikin
Anansi is a preprocessor for literate programs, in the model of NoWeb or nuweb. Literate programming allows both computer code and documentation to be generated from a single unified source. Home page: https://john-millikin.com/software/anansi/ Hackage:

[Haskell-cafe] HaXml 1.13 - 1.22 upgrade

2011-12-10 Thread Michael Orlitzky
I'm trying to migrate one my programs from the old HaXml API to the new. Please, someone save me. I'm currently stuck with this, which works in 1.13. All of the filters work on Content, so I make some from the root element with the root_elem = CElem root line. -- |Takes an XML String as

Re: [Haskell-cafe] HaXml 1.13 - 1.22 upgrade

2011-12-10 Thread Antoine Latter
On Sun, Dec 11, 2011 at 12:08 AM, Michael Orlitzky mich...@orlitzky.com wrote: I'm trying to migrate one my programs from the old HaXml API to the new. Please, someone save me. I'm currently stuck with this, which works in 1.13. All of the filters work on Content, so I make some from the root

Re: [Haskell-cafe] [ANNOUNCEMENT] xmobar 0.14

2011-12-10 Thread Jose A. Ortega Ruiz
On Sun, Dec 11 2011, Brandon Allbery wrote: [...] xmobar currently requires parsec 3.x; the above is the symptom of building it against 2.x. Aha, thanks for pointing this out, guys. Peter, would using parsec 3.x be an acceptable solution to you? Cheers, jao -- Life isn't about finding