Re: [Haskell-cafe] Embed Haskell

2012-04-28 Thread Rustom Mody
On Sun, Apr 22, 2012 at 9:29 PM, Rosario Borda wrote: > Hi All, > > Is there a simple method for embed haskell in other languages, like latex? > > An example in quasiquotation notation: > > \documentclass{article} > \title{Hello World} > \begin{document} > \maketitle > Hello world! and reverse

Re: [Haskell-cafe] Threads and hGetLine

2012-04-28 Thread Joey Adams
On Sat, Apr 28, 2012 at 2:23 PM, H. M. wrote: > There are two threads, one which is waits on input via > hGetLine > and another, which should terminate this thread or close this handle. > > hClose > as well as > killThread > doesn't seem to work, caused by the fact, that the thread is blocked unti

Re: [Haskell-cafe] [Haskell] ANN: Portackage - a hackage portal

2012-04-28 Thread Andrew Seniuk
> On Apr 27, 2012 6:18 PM, "Andrew Seniuk" wrote: > Oh, the idea wasn't that you would make the app, but that by providing a web > service interface you would make it easier for me or anyone else to make an > app or other alternative interface.  It would also reduce bandwidth usage > over screen s

Re: [Haskell-cafe] Threads and hGetLine

2012-04-28 Thread Alvaro Gutierrez
Hi -- I am not well-versed in Haskell-specific multi-threading, but usually there is a better way to do what you want that does not involve killing threads (which in most cases is bad idea.) For example, using non-blocking IO and e.g. a synchronized condition variable; hWaitForInput might work in

[Haskell-cafe] Threads and hGetLine

2012-04-28 Thread H. M.
Hello, The simplified problem: There are two threads, one which is waits on input via hGetLine and another, which should terminate this thread or close this handle. hClose as well as killThread doesn't seem to work, caused by the fact, that the thread is blocked until input is availiable. Hop

Re: [Haskell-cafe] Automatic discovery of tests

2012-04-28 Thread Simon Hengel
Hi Graham, > Or is there a better way just to invoke specific functions prefixed > with case_ prop_ etc in the entire src/test directory of the cabal > build ? I think this would be possible if we had GHC ticket #1475 implemented. I just added a comment [1]. Cheers, Simon [1] http://hackage.has

Re: [Haskell-cafe] ANN: unfoldable-0.4.0

2012-04-28 Thread Sjoerd Visscher
On Apr 28, 2012, at 2:40 AM, wren ng thornton wrote: > On 4/26/12 3:52 PM, Roman Cheplyaka wrote: >> * Tillmann Rendel [2012-04-26 >> 21:34:21+0200] >>> Hi, >>> >>> Sjoerd Visscher wrote: Just as there's a Foldable class, there should also be an Unfoldable class. This package provid

[Haskell-cafe] Update of haskell cafe on google groups

2012-04-28 Thread Graham Berks
Has this stopped working ? Seems a bit out of date ? Thanks ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Automatic discovery of tests

2012-04-28 Thread Graham Berks
Hi, trying to learn haskell and the associated build env. I come from a java/scala world so trying to understand the how to invoke tests. Have a cabal file that invokes a main function to execute a test. But wondering if there is any automatic discovery of tests as per junit. I have seen test-fra