Re: [Haskell-cafe] Histogram creation

2008-11-11 Thread Ketil Malde
Duncan Coutts [EMAIL PROTECTED] writes: Perhaps I misunderstood but I think Alexey means that he wants to accumulate several different histograms (ie different arrays) but to only make one pass over the input data. This is precicely my problem, too. The form of accumArray does not make

[Haskell-cafe] Re: reliable (bi)directional pipe to a process

2008-11-11 Thread Jason Dusek
There is actually a real wealth of material on generalizing I/O on your site -- it's definitely something I will be ever more interested in. Now that I think about it, I can remember a time where a program that did a lot of stuff with Amazon would mysteriously run out of file

[Haskell-cafe] Re: What *not* to use Haskell for

2008-11-11 Thread Mauricio
I think Haskell is not nice to write general purpouse libraries that could be easily and completly wrapped by other languages. You can wrap gtk, sqlite3, gsl, opengl etc., but you can't write python bindings for Data.Graph. But, then, if you claim there's nothing else Haskell can't do, what do

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Robert Greayer
--- On Tue, 11/11/08, Dave Tapley [EMAIL PROTECTED] wrote: So I should clarify I'm not a troll and do see the Haskell light. But one thing I can never answer when preaching to others is what does Haskell not do well? 'Hard' real-time applications? I don't know that there couldn't be a

[Haskell-cafe] ByteString/parsec

2008-11-11 Thread Pieter Laeremans
HI, I want to efficiently parse a large collections of files. The files are in the format : example title TITLE author name AUTHOR some lines with summary here SUMMARY the real text TEXT a list of links LINKS I want to use ByteString here, but which library should I use to parse ? attoparsec

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Malcolm Wallace
Jules Bean [EMAIL PROTECTED] wrote: GHC's scheduler lacks any hard timeliness guarantees. This is probably not a fundamental problem with haskell. It's a problem with the compiler/RTS which we happen to be using. Actually, I would say it is much worse than that. It is not merely a

[Haskell-cafe] Re: ByteString/parsec

2008-11-11 Thread Christian Maeder
Pieter Laeremans wrote: fileParser :: Parser Content fileParser = do title - manyTill getInput (string . pack \nTITLE\n) author - manyTill getInput (string. pack \nTITLE\n) return Content title author ... But this doesn't work. getInput does not consume any input

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Jake Mcarthur
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Nov 11, 2008, at 10:45 AM, Colin Paul Adams wrote: Is there a way to call Haskell code from other languages? I have looked on the wiki, and as far as I can see, it only talks about the other way round (when Haskell is the main program).

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Donn Cave
Quoth Colin Paul Adams [EMAIL PROTECTED]: | Is there a way to call Haskell code from other languages? I have looked on | the wiki, and as far as I can see, it only talks about the other way | round (when Haskell is the main program). There sure is a way to call from other languages - cf. foreign

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Jules Bean
Malcolm Wallace wrote: Jules Bean [EMAIL PROTECTED] wrote: GHC's scheduler lacks any hard timeliness guarantees. This is probably not a fundamental problem with haskell. It's a problem with the compiler/RTS which we happen to be using. Actually, I would say it is much worse than that. It

RE: [Haskell-cafe] compilation question

2008-11-11 Thread Mitchell, Neil
Hi The one way to test this is to benchmark, everything else will just be peoples random guesses. As for my random guess, eval should be significantly faster than peval in Hugs, and probably slightly faster than peval in GHC. I don't see why you think peval is efficient - monads /= efficiency,

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Krasimir Angelov
You can hire one Haskell programmer instead of 1,2,3... programmers in your favorite imperative language. On Tue, Nov 11, 2008 at 12:32 PM, Arnar Birgisson [EMAIL PROTECTED] wrote: Hi all, On Tue, Nov 11, 2008 at 11:38, Dave Tapley [EMAIL PROTECTED] wrote: Usually I'll avoid then question

[Haskell-cafe] Problem installing curl

2008-11-11 Thread Martin Huschenbett
Hi all, when I try to install curl (needed for hxt) using cabal install curl I alwas get the following error message: Resolving dependencies... 'curl-1.3.2.1' is cached. Configuring curl-1.3.2.1... cabal: Error: some packages failed to install: curl-1.3.2.1 failed during the configure step.

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Arnar Birgisson
Hi all, On Tue, Nov 11, 2008 at 11:38, Dave Tapley [EMAIL PROTECTED] wrote: Usually I'll avoid then question and explain that it is a 'complete' language and we do have more than enough libraries to make it useful and productive. But I'd be keen to know if people have any anecdotes, ideally

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Derek Elkins
On Tue, 2008-11-11 at 17:09 +, Colin Paul Adams wrote: Jake == Jake Mcarthur [EMAIL PROTECTED] writes: Jake Actually, that's not the whole story. I didn't realize until Jake I sent it. There does exist good documentation for this, I Jake promise. Good. Let me know where

Re: [Haskell-cafe] Problem installing curl

2008-11-11 Thread Don Stewart
huschi: Hi all, when I try to install curl (needed for hxt) using cabal install curl I alwas get the following error message: Resolving dependencies... 'curl-1.3.2.1' is cached. Configuring curl-1.3.2.1... cabal: Error: some packages failed to install: curl-1.3.2.1 failed during the

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Arnar Birgisson
On Tue, Nov 11, 2008 at 14:37, Krasimir Angelov [EMAIL PROTECTED] wrote: You can hire one Haskell programmer instead of 1,2,3... programmers in your favorite imperative language. That's assuming I can find a Haskell programmer in the first place. Also, he/she has to be good to replace 10 other

Re[2]: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Bulat Ziganshin
Hello Colin, Tuesday, November 11, 2008, 8:09:09 PM, you wrote: If I want to call Haskell (and I do, perhaps) from another garbage-collected language (Eiffel, in particular) using C as the mutually understood language, am I not going to run into big problems? of course not. there will be two

[Haskell-cafe] mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Chad Scherrer
Hello cafe, I've hit a bit of a monadic snag here... I'm scanning a big file, building a table of statistics. I end up with something like IO (IntMap (IOUArray Int Double)) Once I've read in the whole file and built my statistics, I don't need any more updates, so I'd like to do something like

Re: [Haskell-cafe] mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Don Stewart
chad.scherrer: Hello cafe, I've hit a bit of a monadic snag here... I'm scanning a big file, building a table of statistics. I end up with something like IO (IntMap (IOUArray Int Double)) Once I've read in the whole file and built my statistics, I don't need any more updates, so I'd

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread John Goerzen
On Tue, Nov 11, 2008 at 12:35:05PM -0600, Derek Elkins wrote: On Tue, 2008-11-11 at 17:09 +, Colin Paul Adams wrote: Jake == Jake Mcarthur [EMAIL PROTECTED] writes: Jake Actually, that's not the whole story. I didn't realize until Jake I sent it. There does exist good

Re: [Haskell-cafe] Problem installing curl

2008-11-11 Thread Duncan Coutts
On Tue, 2008-11-11 at 10:49 -0800, Don Stewart wrote: curl-1.3.2.1 failed during the configure step. The exception was: sh: runGenProcess: does not exist (No such file or directory) I don't know what to do here. Can anybody help me please? I'm using the brand new GHC 6.10.1 on

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Don Stewart
colin: Is there a way to call Haskell code from other languages? I have looked on the wiki, and as far as I can see, it only talks about the other way round (when Haskell is the main program). http://haskell.org/haskellwiki/Calling_Haskell_from_C Cheers, Don

[Haskell-cafe] Re: mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Chad Scherrer
Don Stewart dons at galois.com writes: Hmm. So you'd need to construct a new IntMap, made by fmap'ping unsafeFreeze over each element of the old map. I guess if we had a Traversable instance for Data.IntMap things would be just fine. Would this be a bad thing in any way? Chad

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Don Stewart
colin: Jake == Jake Mcarthur [EMAIL PROTECTED] writes: Jake Actually, that's not the whole story. I didn't realize until Jake I sent it. There does exist good documentation for this, I Jake promise. Good. Let me know where it is when you track it down. The link you pointed

[Haskell-cafe] Re: reliable (bi)directional pipe to a process

2008-11-11 Thread Johannes Waldmann
I too have noticed insidious bugs in GHC run-time when communicating with another process via a pipe. I tried to use runInteractiveProcess; it worked -- up to file sizes of about 300Kb. Yeah, I seem to be running into similar strange problems, so I'll be definitely checking out your code.

[Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Dave Tapley
Hi everyone So I should clarify I'm not a troll and do see the Haskell light. But one thing I can never answer when preaching to others is what does Haskell not do well? Usually I'll avoid then question and explain that it is a 'complete' language and we do have more than enough libraries to

Re: [Haskell-cafe] Re: What *not* to use Haskell for

2008-11-11 Thread Jefferson Heard
Actually, one language you mention there *is* worse than the others for writing wrappable library code: C++. Admittedly, they've got a Python interface now via boost, but the main problem with writing wrappable C++ code is the template system and the inheritence systems getting in the way.

Re: [Haskell-cafe] Exporting a Type Class for Type Signatures

2008-11-11 Thread Malcolm Wallace
Dominic Steinitz [EMAIL PROTECTED] wrote: Is there a way of allowing someone to use AESKey in a type signature but not allow them to declare new instances? I was going to suggest you export the class abstractly, that is, without its methods, so no-one could externally create an instance. But

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Colin Paul Adams
John == John Goerzen [EMAIL PROTECTED] writes: Read the FFI Report. It is relatively readable and comprehensive. http://www.cse.unsw.edu.au/~chak/haskell/ffi/ And yes, you will have to use C as an intermediary, though you may not have to actually write any C. You

[Haskell-cafe] problem with boolean splicing in templates in ghc 6.10.1

2008-11-11 Thread Leonidas Fegaras
Seems that boolean splicing in haskell templates in ghc 6.10.1 does not work correctly. If you do: $((\b - [| b |]) True) you get the error: Can't find interface-file declaration for data constructor GHC.Base.True Probable cause: bug in .hi-boot file, or inconsistent .hi file Use

Re: [Haskell-cafe] mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Bulat Ziganshin
Hello Chad, Tuesday, November 11, 2008, 10:23:09 PM, you wrote: using unsafeFreeze. I'm getting stuck here, since the IntMap library is not so monad-friendly. Data.Hashtable is -- Best regards, Bulatmailto:[EMAIL PROTECTED]

Re: [Haskell-cafe] Re: mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Ross Paterson
On Tue, Nov 11, 2008 at 07:39:53PM +, Chad Scherrer wrote: Don Stewart dons at galois.com writes: Hmm. So you'd need to construct a new IntMap, made by fmap'ping unsafeFreeze over each element of the old map. I guess if we had a Traversable instance for Data.IntMap things would be just

[Haskell-cafe] Re: GHC 6.10 / Mac OS X / Library problem

2008-11-11 Thread Christian Maeder
Hugo Pacheco wrote: it is however. the same happened to me. you just need to run cabal install pcre-light --extra-include-dirs=/opt/local/include --extra-lib-dirs=/opt/local/lib My location is /opt/local, since I installed pcre via macports sudo port install pcre Alternatively:

RE: [Haskell-cafe] mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Scherrer, Chad
Bulat wrote: Hello Chad, Tuesday, November 11, 2008, 10:23:09 PM, you wrote: using unsafeFreeze. I'm getting stuck here, since the IntMap library is not so monad-friendly. Data.Hashtable is Well, I need mutable update for a while... after that, I prefer a pure interface, which is

[Haskell-cafe] Compilation issue with GHC 6.10.1 on Vista

2008-11-11 Thread Alexey Romanov
I'm trying to update FreshLib http://homepages.inf.ed.ac.uk/jcheney/programs/freshlib/ to work with the current GHC version. Now it works fine in GHCi, but trying to compile with ghc --make gives this result: [1 of 5] Compiling NominalBase ( NominalBase.hs, NominalBase.o ) Loading package

Re: [Haskell-cafe] Re: download haskell?

2008-11-11 Thread Thomas Schilling
2008/11/11 Benjamin L. Russell [EMAIL PROTECTED]: Haskell's corresponding link should probably be (somewhat facetiously): download :: Click - HaskellCompiler download GHC parse error (possibly incorrect indentation) ___ Haskell-Cafe mailing list

[Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Colin Paul Adams
Is there a way to call Haskell code from other languages? I have looked on the wiki, and as far as I can see, it only talks about the other way round (when Haskell is the main program). -- Colin Adams Preston Lancashire ___ Haskell-Cafe mailing list

Re[2]: [Haskell-cafe] mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Bulat Ziganshin
Hello Max, Tuesday, November 11, 2008, 11:50:28 PM, you wrote: btw, i made here some time ago proposal about pure hashtables implented over a pure arrays (via accumArray operaion). may be it is somewhat helpful for you using unsafeFreeze. I'm getting stuck here, since the IntMap library

Re: [Haskell-cafe] Re: What *not* to use Haskell for

2008-11-11 Thread Bulat Ziganshin
Hello Mauricio, Tuesday, November 11, 2008, 2:26:21 PM, you wrote: imho, Haskell isn't worse here than any other compiled language - C++, ML, Eiffel and beter tnan Java or C#.every language has its own object model and GC. the only ay is to provide C-typed interfaces between languages (or use

Re[2]: [Haskell-cafe] Re: What *not* to use Haskell for

2008-11-11 Thread Bulat Ziganshin
Hello Jefferson, Tuesday, November 11, 2008, 4:12:40 PM, you wrote: may be i doesn't understand something but why c#, java, delphi, visual basic, perl, python, ruby or even ml better than c++? symbol names in C++ are easily predictable with wrapper using extern C. i think that you just not

Re: [Haskell-cafe] Re: What *not* to use Haskell for

2008-11-11 Thread Henning Thielemann
On Tue, 11 Nov 2008, Jefferson Heard wrote: Actually, one language you mention there *is* worse than the others for writing wrappable library code: C++. Admittedly, they've got a Python interface now via boost, but the main problem with writing wrappable C++ code is the template system and

Re: [Haskell-cafe] Proposal for associated type synonyms in Template Haskell

2008-11-11 Thread José Pedro Magalhães
Hello Thomas, I see this is a proposal for a partial implementation of #1673 ( http://hackage.haskell.org/trac/ghc/ticket/1673). Maybe it would be good if the remaining syntax (associated datatypes and type families) would also be defined and implemented in TH. Or maybe there isn't much demand

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Don Stewart
consalus: On Tue, Nov 11, 2008 at 2:38 AM, Dave Tapley [EMAIL PROTECTED] wrote: Hi everyone So I should clarify I'm not a troll and do see the Haskell light. But one thing I can never answer when preaching to others is what does Haskell not do well? Usually I'll avoid then question

Re: [Haskell-cafe] mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Don Stewart
bulat.ziganshin: Hello Max, Tuesday, November 11, 2008, 11:50:28 PM, you wrote: btw, i made here some time ago proposal about pure hashtables implented over a pure arrays (via accumArray operaion). may be it is somewhat helpful for you Did you end up implementing this? -- Don

[Haskell-cafe] announce: Workflow-0.1

2008-11-11 Thread Alberto G. Corona
I needed to to define multiuser web workflows in the most transparent way. I wondered if a state monad could transparently bring automatic checkpointing of each action and automatic resume after failure. In this way a long living computation could be expressed in a single monadic computation.

[Haskell-cafe] compiling haskell-src-exts in 6.10

2008-11-11 Thread Hugo Pacheco
When installing package haskell-src-exts via cabal install, I get the error Language/Haskell/Exts/Syntax.hs:102:7: Could not find module `Data.Data': it is a member of package base, which is hidden However, when manually installing runhaskell Setup.hs configure/build/install It works

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Colin Paul Adams
Jake == Jake Mcarthur [EMAIL PROTECTED] writes: Jake Actually, that's not the whole story. I didn't realize until Jake I sent it. There does exist good documentation for this, I Jake promise. Good. Let me know where it is when you track it down. The link you pointed me too doesn't

Re[2]: [Haskell-cafe] mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Bulat Ziganshin
Hello Don, Wednesday, November 12, 2008, 12:51:33 AM, you wrote: btw, i made here some time ago proposal about pure hashtables Did you end up implementing this? yes, i have published here all the 10 lines of implementation :))) citing letter to you: actually, writing HT module from scratch

Re: [Haskell-cafe] mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Don Stewart
bulat.ziganshin: Hello Don, Wednesday, November 12, 2008, 12:51:33 AM, you wrote: btw, i made here some time ago proposal about pure hashtables Did you end up implementing this? yes, i have published here all the 10 lines of implementation :))) citing letter to you: actually,

Re[2]: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Bulat Ziganshin
Hello Don, Wednesday, November 12, 2008, 12:51:10 AM, you wrote: Do you have an example of a mutable state/ IO bound application, like, hmm, a window manager or a revision control system or a file system...? not I/O, but IO :) btw, i use C++ for speed-critical code (compression encryprion)

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Kyle Consalus
On Tue, Nov 11, 2008 at 1:51 PM, Don Stewart [EMAIL PROTECTED] wrote: consalus: On Tue, Nov 11, 2008 at 2:38 AM, Dave Tapley [EMAIL PROTECTED] wrote: Hi everyone So I should clarify I'm not a troll and do see the Haskell light. But one thing I can never answer when preaching to others is

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Jules Bean
Dave Tapley wrote: Hi everyone So I should clarify I'm not a troll and do see the Haskell light. But one thing I can never answer when preaching to others is what does Haskell not do well? Usually I'll avoid then question and explain that it is a 'complete' language and we do have more than

Re: [Haskell-cafe] compilation question

2008-11-11 Thread Derek Elkins
On Tue, 2008-11-11 at 18:49 +0100, Peter Padawitz wrote: At first a type of arithmetic expressions and its generic evaluator: data Expr = Con Int | Var String | Sum [Expr] | Prod [Expr] | Expr :- Expr | Int :* Expr | Expr :^ Int data ExprAlg a = ExprAlg {con :: Int - a, var ::

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Don Stewart
consalus: On Tue, Nov 11, 2008 at 1:51 PM, Don Stewart [EMAIL PROTECTED] wrote: consalus: On Tue, Nov 11, 2008 at 2:38 AM, Dave Tapley [EMAIL PROTECTED] wrote: Hi everyone So I should clarify I'm not a troll and do see the Haskell light. But one thing I can never answer when

Re[2]: [Haskell-cafe] mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Bulat Ziganshin
Hello Don, Wednesday, November 12, 2008, 1:21:18 AM, you wrote: If this structure is useful, you should release it on Hackage. You've not tested the performance though, I imagine, versus say, hasing into an IntMap? you know that making all these things need a time. sorry, ATM i think that my

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Anatoly Yakovenko
Has there been any progress in getting ghc set up for porting to non x86/unix/windows platforms? Can it generate ropi code? It would also be nice to be able to compile to C that rvct/arm tools can compile in thumb mode. Its whats stopping me from trying to use it for mobile development.

Re: [Haskell-cafe] Trouble installing ghc-6.10.1 on linux

2008-11-11 Thread Ian Lynagh
Hi Bit, On Mon, Nov 10, 2008 at 03:05:23PM +0200, Bit Connor wrote: First I tried the binary version ghc-6.10.1-i386-unknown-linux.tar.bz2 and I very quickly get this error: $ ./configure checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu

Re: [Haskell-cafe] GHC 6.10, strange behaviour when profiling?

2008-11-11 Thread Aleš Bizjak
On Tue, 11 Nov 2008 11:54:57 +0100, Thomas Schilling [EMAIL PROTECTED] wrote: I think you hit bug http://hackage.haskell.org/trac/ghc/ticket/2747, which is an accounting bug in the garbage collector and goes away when you trigger more garbage collections (which -hc does, I think). Please file

[Haskell-cafe] compilation question

2008-11-11 Thread Peter Padawitz
At first a type of arithmetic expressions and its generic evaluator: data Expr = Con Int | Var String | Sum [Expr] | Prod [Expr] | Expr :- Expr | Int :* Expr | Expr :^ Int data ExprAlg a = ExprAlg {con :: Int - a, var :: String - a, sum_ :: [a] - a, prod :: [a] - a, sub

[Haskell-cafe] Re: mapping unfreeze over an IntMap of IOUArrays

2008-11-11 Thread Chad Scherrer
Don Stewart dons at galois.com writes: Hmm. So you'd need to construct a new IntMap, made by fmap'ping unsafeFreeze over each element of the old map. For now I'll just do IntMap.map (unsafePerformIO . unsafeFreeze) Hopefully this won't come back to bite me Thanks! Chad

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Jefferson Heard
Kyle, I would say that most apps don't actually require that you write a mutation heavy inner loop. They can be written either way, and Haskell gives you the facility to do both. Even my field, which is visualization can be written either way. I write with a mutation heavy inner loop myself,

Re: [Haskell-cafe] Re: reliable (bi)directional pipe to a process

2008-11-11 Thread Jason Dusek
As an aside, my present problem really seems to be fixed -- I am able to move files of more than 2MB from one process to another within my Haskell program. In my program, I take the input file, turn it into a ByteString, pass it to process one, capture the result as a ByteString, pass it

Re: [Haskell-cafe] Re: What *not* to use Haskell for

2008-11-11 Thread Arnar Birgisson
On Tue, Nov 11, 2008 at 14:46, Henning Thielemann [EMAIL PROTECTED] wrote: SWIG helps wrapping C++ libraries by providing C wrappers to C++ functions. However, as far as I know, templates cannot be wrapped as they are, but only instances of templates. Thus there is no wrapper to STL. Maybe my

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Jake Mcarthur
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Actually, that's not the whole story. I didn't realize until I sent it. There does exist good documentation for this, I promise. - - Jake -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (Darwin)

Go Haskell! (was: [Haskell-cafe] What *not* to use Haskell for)

2008-11-11 Thread Claus Reinke
Do you have an example of a mutable state/ IO bound application, like, hmm, a window manager or a revision control system or a file system...? If you're looking for a challenge, how about this one (there used to be lots of Haskellers into this game, any of you still around?-):

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Arnar Birgisson
Hi again, On Tue, Nov 11, 2008 at 11:38, Dave Tapley [EMAIL PROTECTED] wrote: So I should clarify I'm not a troll and do see the Haskell light. But one thing I can never answer when preaching to others is what does Haskell not do well? C does extremely well when you want to write low level

Re: [Haskell-cafe] compiling haskell-src-exts in 6.10

2008-11-11 Thread Niklas Broberg
2008/11/11 Hugo Pacheco [EMAIL PROTECTED]: When installing package haskell-src-exts via cabal install, I get the error Language/Haskell/Exts/Syntax.hs:102:7: Could not find module `Data.Data': it is a member of package base, which is hidden However, when manually installing

Re: [Haskell-cafe] Calling Haskell from other languages?

2008-11-11 Thread Fraser Wilson
I had a proof of concept lying around a couple of years ago in which a big complicated Ada program called a big complicated Haskell program and vice versa. The tricky bit from memory was making it link, and satisfying their rumtime initialisation requirements. No explicit C was required

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread wren ng thornton
Dave Tapley wrote: Hi everyone So I should clarify I'm not a troll and do see the Haskell light. But one thing I can never answer when preaching to others is what does Haskell not do well? Usually I'll avoid then question and explain that it is a 'complete' language and we do have more than

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread sam lee
I haven't found multitrack audio recording applications written in Haskell. These are usually written in C++ using Jack audio or ASIO. This probably means that it is not a good idea to write real time audio applications in Haskell at the moment. So, probably avoid writing applications that use a

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Jeremy Shaw
At Tue, 11 Nov 2008 22:41:48 -0500, sam lee wrote: I haven't found multitrack audio recording applications written in Haskell. These are usually written in C++ using Jack audio or ASIO. This probably means that it is not a good idea to write real time audio applications in Haskell at the

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Eelco Lempsink
On 11 nov 2008, at 11:38, Dave Tapley wrote: Usually I'll avoid then question and explain that it is a 'complete' language and we do have more than enough libraries to make it useful and productive. But I'd be keen to know if people have any anecdotes, ideally ones which can subsequently be