Re: [Haskell-cafe] Package documentation complaints -- and a suggestion

2011-10-10 Thread Max Rabkin
On Mon, Oct 10, 2011 at 03:17, John Millikin jmilli...@gmail.com wrote: The package summary is Type-safe ADT-database mapping library., which gives some idea about what it does. Whence my suggestion to show this on the package's page. Perhaps I shouldn't have hidden that at the bottom -- I

Re: [Haskell-cafe] Package documentation complaints -- and a suggestion

2011-10-10 Thread Paterson, Ross
Max Rabkin writes: But I also have a concrete suggestion for Hackage: include the package synopsis on the package's page. The distinction between synopsis and description can be confusing, and sometimes it seems to violate DRY to have the same info in both. You may have missed the header on

Re: [Haskell-cafe] Package documentation complaints -- and a suggestion

2011-10-10 Thread Max Rabkin
On Mon, Oct 10, 2011 at 10:06, Paterson, Ross r.pater...@city.ac.uk wrote: Max Rabkin writes: But I also have a concrete suggestion for Hackage: include the package synopsis on the package's page. The distinction between synopsis and description can be confusing, and sometimes it seems to

Re: [Haskell-cafe] Best bit LIST data structure

2011-10-10 Thread Ryan Newton
On Sun, Oct 9, 2011 at 12:11 PM, Roman Beslik ber...@ukr.net wrote: Yes, if you do not use high-level concepts and optimize everything by hand, it requires a lot of testing. :) There are probably more constructive, jibe-free ways to frame this suggestion... Regarding testing: my preference

Re: [Haskell-cafe] Trouble using State Monad.

2011-10-10 Thread Jake McArthur
On Oct 9, 2011 11:17 PM, David Barbour dmbarb...@gmail.com wrote: If you really want the input type to be part of the Filter type definition, you'll need to use arrows instead of monads. I wouldn't say that. You just need an extra type parameter. That doesn't mean it can't be a monad. In fact,

Re: [Haskell-cafe] Question on definition of `parse' function in Parsec library.

2011-10-10 Thread Christian Maeder
Am 08.10.2011 16:04, schrieb Captain Freako: Hi all, In this definition from the Parsec library: parse :: (Stream s Identity t) = Parsec s () a - SourceName - s - Either ParseError a parse p = runP p () what's the significance of `Identity t'? (`t' isn't used

[Haskell-cafe] wxhaskell : how to generate an event?

2011-10-10 Thread Johannes Waldmann
Dear all, in wxHaskell (core) I can set and get event handlers http://hackage.haskell.org/packages/archive/wxcore/0.12.1.7/doc/html/Graphics-UI-WXCore-Events.html but how is it possible to create events (programmatically) and somehow feed them into the main event handling loop? I think I need

Re: [Haskell-cafe] Is there a DFA library?

2011-10-10 Thread Johannes Waldmann
... things like minimization, completion, etc. http://autolat.imn.htwk-leipzig.de/haddock/autolib-fa-1.1/ git clone git://autolat.imn.htwk-leipzig.de/git/autolib Enjoy - J.W. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] SMP parallelism increasing GC time dramatically

2011-10-10 Thread Tom Thorne
Yes I will try to run threadscope on it, I tried it before and the event log output produced about 1.8GB, and then crashed. Is there any way to tell the RTS to perform GC less often? My code doesn't use too much memory and I'm using fairly hefty machines (e.g one with 48 cores and 128GB of RAM)

Re: [Haskell-cafe] SMP parallelism increasing GC time dramatically

2011-10-10 Thread Gregory Collins
On Mon, Oct 10, 2011 at 3:55 PM, Tom Thorne thomas.thorn...@gmail.com wrote: Yes I will try to run threadscope on it, I tried it before and the event log output produced about 1.8GB, and then crashed. Is there any way to tell the RTS to perform GC less often? My code doesn't use too much

Re: [Haskell-cafe] SMP parallelism increasing GC time dramatically

2011-10-10 Thread Tom Thorne
thanks! I just tried setting -A32M and this seems to fix the parallel GC problems, I now get a speedup with parallel GC on and performance is the same as passing -qg. I had tried -H before and it only made things worse, but -A seems to do the trick. I'm still having problems with segmentation

[Haskell-cafe] cabal license check?

2011-10-10 Thread Eric Y. Kow
Hi all, I'd like a tool that takes a .cabal file as input and produces a list of all dependencies (recursive, all the way to 'base') and some metadata for each (most importantly, LICENSE) Does this already exist, or will I to write it myself? I notice that there's a patch by Trevor Elliot to

Re: [Haskell-cafe] cabal license check?

2011-10-10 Thread Felipe Almeida Lessa
On Mon, Oct 10, 2011 at 11:53 AM, Eric Y. Kow eric@gmail.com wrote: I notice that there's a patch by Trevor Elliot to either Cabal or cabal-install that does something similar [1], and I know that Magnus Therning wrote a little tool that creates a GraphViz graph [2]... so it seems like all

Re: [Haskell-cafe] SMP parallelism increasing GC time dramatically

2011-10-10 Thread Simon Marlow
On 08/10/2011 01:47, austin seipp wrote: It's GHC, and partly the OS scheduler in some sense. Oversaturating, i.e. using an -N option your number of logical cores (including hyperthreads) will slow down your program typically. This isn't uncommon, and is well known - GHC's lightweight threads

Re: [Haskell-cafe] SMP parallelism increasing GC time dramatically

2011-10-10 Thread Simon Marlow
On 10/10/2011 15:44, Tom Thorne wrote: thanks! I just tried setting -A32M and this seems to fix the parallel GC problems, I now get a speedup with parallel GC on and performance is the same as passing -qg. I had tried -H before and it only made things worse, but -A seems to do the trick. I'm

Re: [Haskell-cafe] cabal license check?

2011-10-10 Thread Henk-Jan van Tuyl
On Mon, 10 Oct 2011 16:53:29 +0200, Eric Y. Kow eric@gmail.com wrote: Hi all, I'd like a tool that takes a .cabal file as input and produces a list of all dependencies (recursive, all the way to 'base') and some metadata for each (most importantly, LICENSE) Does this already exist, or

Re: [Haskell-cafe] Question: Lazy Incremental Evaluation and Haskell?

2011-10-10 Thread Benjamin Redelings
On 10/08/2011 12:46 PM, Jan-Willem Maessen wrote: On Fri, Oct 7, 2011 at 2:46 PM, Brandon Moorebrandon_m_mo...@yahoo.com wrote: Margnus Carlsson did something monadic several years ago. http://dl.acm.org/citation.cfm?doid=581478.581482 Perhaps there is an implementation on Hackage or on his

[Haskell-cafe] Three questions to graphviz

2011-10-10 Thread kaffeepause73
First of all - thanks a lot for this package, graphviz is an awesome tool and having this interface library is really convenient. There a three point where I could use some help: 1. when I try to create a label with e.g.: textLabelValue Hallo - the compiler complains he can't match string

Re: [Haskell-cafe] Three questions to graphviz

2011-10-10 Thread David Barbour
On Mon, Oct 10, 2011 at 9:44 AM, kaffeepause73 kaffeepaus...@yahoo.dewrote: First of all - thanks a lot for this package, graphviz is an awesome tool and having this interface library is really convenient. There a three point where I could use some help: 1. when I try to create a label with

Re: [Haskell-cafe] SMP parallelism increasing GC time dramatically

2011-10-10 Thread Erik Hesselink
On Mon, Oct 10, 2011 at 16:44, Tom Thorne thomas.thorn...@gmail.com wrote: thanks! I just tried setting -A32M and this seems to fix the parallel GC problems, I now get a speedup with parallel GC on and performance is the same as passing -qg. I had tried -H before and it only made things worse,

Re: [Haskell-cafe] Three questions to graphviz

2011-10-10 Thread kaffeepause73
Hi Dave, Thanks for the quick reply - it works now. - I wasted quite a bit time on this. I guess the internal bit in the compiler message confused me. Cheers Phil -- View this message in context: http://haskell.1045720.n5.nabble.com/Three-questions-to-graphviz-tp418p4888946.html Sent from

Re: [Haskell-cafe] Three questions to graphviz

2011-10-10 Thread Ketil Malde
kaffeepause73 kaffeepaus...@yahoo.de writes: Thanks for the quick reply - it works now. - I wasted quite a bit time on this. Alternatively, you can turn on overloaded strings, which allows constructing text values (along with other types that are instances of IsString) from string constants.

[Haskell-cafe] The best way to call Java from Haskell?

2011-10-10 Thread dokondr
Hi, I need to call Stanford NLP Parser from Haskell (unfortunately Haskell does not have a similar one): http://nlp.stanford.edu/software/lex-parser.shtml What would be the most reliable framework for this? Thanks! Dmitri ___ Haskell-Cafe mailing list

[Haskell-cafe] ANN: ircbot 0.1.1

2011-10-10 Thread Jeremy Shaw
Hello, I have just released a new library on hackage called ircbot. (Because that is what Haskell really needs -- another irc bot library). http://hackage.haskell.org/package/ircbot A demo app is here: http://patch-tag.com/r/stepcut/ircbot/snapshot/current/content/pretty/demo.hs The demo

Re: [Haskell-cafe] Three questions to graphviz

2011-10-10 Thread Ivan Lazar Miljenovic
On 11 October 2011 03:44, kaffeepause73 kaffeepaus...@yahoo.de wrote: First of all - thanks a lot for this package, graphviz is an awesome tool and having this interface library is really convenient. There a three point where I could use some help: 2. I know how to rotate the whole diagram

[Haskell-cafe] Implementing a new primtype

2011-10-10 Thread Paul Monday
There seems to be plenty of documentation around on implementing a new primop, much of it needs some tweaking as files have moved and such. I can't seem to find any documentation about how to implement primtypes though. For example, I want to experiment with a new primtype DV#, my assumption

Re: [Haskell-cafe] Implementing a new primtype

2011-10-10 Thread Daniel Fischer
On Tuesday 11 October 2011, 00:57:39, Paul Monday wrote: There seems to be plenty of documentation around on implementing a new primop, much of it needs some tweaking as files have moved and such. I can't seem to find any documentation about how to implement primtypes though. For example,

Re: [Haskell-cafe] Implementing a new primtype

2011-10-10 Thread Paul Monday
No, I've tried with and without the type parameter, it's the same type of error leading me to think there is something I'm missing about prim type declarations, here are the variations. primtype DoubleVec# primop ExtractDoubleVecOp extractDoubleVec# GenPrimOp DoubleVec# - Int# - Double#

Re: [Haskell-cafe] The best way to call Java from Haskell?

2011-10-10 Thread Claude Lee
Hi, vote+1. Theoretically, you can bridge Haskell and Java with FFI. It applys to small projects. Larger ones may need some build tools... Claude 2011/10/11 dokondr doko...@gmail.com Hi, I need to call Stanford NLP Parser from Haskell (unfortunately Haskell does not have a similar one):

Re: [Haskell-cafe] The best way to call Java from Haskell?

2011-10-10 Thread Aatch
There are some projects to try and provide a bridge between Haskell and the JVM. Unfortunately none of the seem to have much development. As it stands, there is GCJNI, which allows Haskell to invoke Java code, seems like a Java version of hsc2hs, but the site is down, it just 404s. There is also