Re: [Haskell-cafe] Re: Libraries for Commercial Users

2009-10-25 Thread Magnus Therning
On 24/10/09 23:08, Iain Barnett wrote: [..] If you're in business, you're trying to keep your costs lower than your income. That means that a language with a stable code base, good/many libraries, and a large pool of developers is a good choice. I'm not sure it necessarily means that. There

Re: [Haskell-cafe] Re: Word128, Word256

2009-10-25 Thread John Meacham
On Sat, Oct 24, 2009 at 10:04:23PM -0200, Maurí­cio CA wrote: Something like 'CComplex CDouble' has been proposed before... I know, I started most of the discussions :) The wiki says before asking for a ticket I should try to talk about it in the mailing list. My attempts never got much

[Haskell-cafe] Hoogle is great but ...

2009-10-25 Thread zaxis
http://www.haskell.org/hoogle/ is VERY great for haskeller. However, i feel hoogle should be improved by providing more examples as : isInfixOf :: Eq a = [a] - [a] - Bool The isInfixOf function takes two lists and returns True iff the first list is contained, wholly and intact, anywhere within

Re: [Haskell-cafe] Hoogle is great but ...

2009-10-25 Thread Eugene Kirpichov
This is not a job for Hoogle, it's for library documenters. However, that might be a good suggestion for haddock: introduce a input/output examples haddock field and present it in hoogle results. That, however, will only be useful if many library authors use this feature. 2009/10/25 zaxis

Re: [Haskell-cafe] Is there a null statement that does nothing?

2009-10-25 Thread michael rice
Hi Curt, Thanks for the tips. Looks like return () would be a good candidate for that null statement I was seeking earlier. Michael --- On Sun, 10/25/09, Curt Sampson c...@starling-software.com wrote: From: Curt Sampson c...@starling-software.com Subject: Re: [Haskell-cafe] Is there a null

[Haskell-cafe] unix pkg on cygwin

2009-10-25 Thread Ben Fitzgerald
Hi just starting out on haskell so thought I'd try and install a few packages. from unix-2.3.2.0: $ runhaskell Setup.hs configure checking target system type... i686-pc-cygwin configure: creating ./config.status config.status: creating unix.buildinfo config.status: creating

Re: [Haskell-cafe] Hoogle is great but ...

2009-10-25 Thread Curt Sampson
On 2009-10-25 02:46 -0700 (Sun), zaxis wrote: However, i feel hoogle should be improved by providing more examples... On 2009-10-25 12:55 +0300 (Sun), Eugene Kirpichov wrote: This is not a job for Hoogle, it's for library documenters. What he said. But zaxis, here's another thing to look

Re: [Haskell-cafe] Re: Libraries for Commercial Users

2009-10-25 Thread Curt Sampson
On 2009-10-25 04:58 + (Sun), Iain Barnett wrote: ... Ok, let me sum up the basic, serious points first, and then I'll get into the fun usenet-style tit-for-tat afterwards. No web application doing significant traffic is running on Rails as you'd roll it out by installing the appropriate

Re: [Haskell-cafe] Re: Libraries for Commercial Users

2009-10-25 Thread Iain Barnett
On 25 Oct 2009, at 08:31, Magnus Therning wrote: Also, as I'm sure you've found out re libraries, more isn't necessarily better. Definitely. Choice can become a real pain, especially in the face of lacking documentation. I'd argue that many, if not most, commonly used libraries

Re: [Haskell-cafe] Re: Libraries for Commercial Users

2009-10-25 Thread Iain Barnett
Curt, I really do think you should lay off characterising other people's comments. If you want clarification ask for it or ask a question. I never said Haskell was failing, for example, but I would like an example of it succeeding in the area that Ruby is being so heavily criticised for.

[Haskell-cafe] ANN: haskell-mode 2.5

2009-10-25 Thread Svein Ove Aas
Fellow Haskellers, I'm happy to announce the release of haskell-mode 2.5. * By web: http://projects.haskell.org/haskellmode-emacs/ * By darcs: http://code.haskell.org/haskellmode-emacs/ Furthermore, there is a change of maintainer; if you have issues, you should now contact me instead of Stefan

Re: [Haskell-cafe] ANN: haskell-mode 2.5

2009-10-25 Thread Deniz Dogan
2009/10/25 Svein Ove Aas svein@aas.no: Fellow Haskellers, I'm happy to announce the release of haskell-mode 2.5. * By web: http://projects.haskell.org/haskellmode-emacs/ * By darcs: http://code.haskell.org/haskellmode-emacs/ Furthermore, there is a change of maintainer; if you have

Re: [Haskell-cafe] Re: Libraries for Commercial Users

2009-10-25 Thread Curt Sampson
On 2009-10-25 14:48 + (Sun), Iain Barnett wrote: On 25 Oct 2009, at 08:31, Magnus Therning wrote: Also, as I'm sure you've found out re libraries, more isn't necessarily better. Definitely. Choice can become a real pain, especially in the face of lacking documentation. Or if the

Re: [Haskell-cafe] ANN: haskell-mode 2.5

2009-10-25 Thread Paulo Tanimoto
On Sun, Oct 25, 2009 at 10:14 AM, Svein Ove Aas svein@aas.no wrote: Fellow Haskellers, I'm happy to announce the release of haskell-mode 2.5. Thank you for stepping up, Svein! Also thanks to Stefan for maintaining haskell-mode for so long. I updated the Wiki entry:

Re: [Haskell-cafe] Re: Libraries for Commercial Users

2009-10-25 Thread Magnus Therning
On 25/10/09 14:48, Iain Barnett wrote: On 25 Oct 2009, at 08:31, Magnus Therning wrote: I'd argue that many, if not most, commonly used libraries are excellent for common tasks, but as soon as you go into a niche many fall short of your requirements for scalability, speed, resource usage,

Re: [Haskell-cafe] ANN: haskell-mode 2.5

2009-10-25 Thread Svein Ove Aas
On Sun, Oct 25, 2009 at 5:34 PM, Paulo Tanimoto tanim...@arizona.edu wrote:  I updated the Wiki entry:  http://haskell.org/haskellwiki/Haskell_mode_for_Emacs with your name and download links.  Can you check if it's OK?  I wasn't sure which of your email addresses to use.  On a side note,

Re: [Haskell-cafe] Re: Libraries for Commercial Users

2009-10-25 Thread Colin Paul Adams
Magnus == Magnus Therning mag...@therning.org writes: Magnus Again, in my own experience the amount of work to find a Magnus good developer is about the same, and sometimes stacked in Magnus favour of using an obscure language. I would be inclined to agree with you. Coming from the

Re[2]: [Haskell-cafe] Re: Libraries for Commercial Users

2009-10-25 Thread Bulat Ziganshin
Hello Colin, Sunday, October 25, 2009, 7:59:54 PM, you wrote: developers, I would probably find it very difficult indeed to find another job as an Eiffel developer, so I would have to look elsewhere, Haskell developers have another risk - they may be considered as overqualified for doing

Re: [Haskell-cafe] ANN: haskell-mode 2.5

2009-10-25 Thread Paulo Tanimoto
On Sun, Oct 25, 2009 at 11:50 AM, Svein Ove Aas svein@aas.no wrote: It looks fine, ignoring the mess. :P While you're at it, you might want to copy the minimal setup from what is described in the README, i.e. including the indentation setup. Or not, if you wish; I'll leave that to your

[Haskell-cafe] Re: What is the current state of affairs with supercompilation?

2009-10-25 Thread Peter A. Jonsson
Hi Eugene, here are some answers: I'm mainly interested in the following: - What supercompilers do exist, except for the ones mentioned above? We have prototype implementations of supercompilers for both GHC and the Timber compiler, but they are not yet in a suitable form for public

Re: [Haskell-cafe] Re: What is the current state of affairs with supercompilation?

2009-10-25 Thread Eugene Kirpichov
Thanks you very much Peter, that helped quite a lot! I'll be looking into all the material you provided. 2009/10/25 Peter A. Jonsson p...@csee.ltu.se: Hi Eugene, here are some answers: I'm mainly interested in the following:  - What supercompilers do exist, except for the ones mentioned

[Haskell-cafe] Re: ANN: haskell-mode 2.5

2009-10-25 Thread Svein Ove Aas
On Sun, Oct 25, 2009 at 4:14 PM, Svein Ove Aas svein@aas.no wrote: Fellow Haskellers, I'm happy to announce the release of haskell-mode 2.5. * By web: http://projects.haskell.org/haskellmode-emacs/ * By darcs: http://code.haskell.org/haskellmode-emacs/ Make that 2.5.1. There were some

[Haskell-cafe] ANN: attempt-0.0.0

2009-10-25 Thread Michael Snoyman
Hello, I'm happy to announce the first release of the attempt package[1]. It is meant to solve the how should I represent a failure issue. It is based on extensible exceptions and provides a monad, a monad transformers and helper functions to replace many standard, unsafe functions like head.

Re: [Haskell-cafe] A 3 line program -- Reid, Don, Daniel

2009-10-25 Thread Ketil Malde
Philippos Apolinarius phi50...@yahoo.ca writes: Thank you for your help. I am sure that you are right as to the cause of the problem.  However, I do not know what I should do to solve it. The Haskell program is generated by LaTeX macros.  It is useless to import System.IO.UTF8. I did it. Are

Re: [Haskell-cafe] Re: Libraries for Commercial Users

2009-10-25 Thread Jason Dusek
2009/10/25 Magnus Therning mag...@therning.org: On 24/10/09 23:08, Iain Barnett wrote: If you're in business, you're trying to keep your costs lower than your income. That means that a language with a stable code base, good/many libraries, and a large pool of developers is a good choice.

[Haskell-cafe] Re: CComplex in jhc (was: Word128, Word256)

2009-10-25 Thread Maurí­cio CA
Something like 'CComplex CDouble' has been proposed before... 2) Since all (few) answers were favorable, should I ask for a ticket to be created? How? Well, before trying to get it standardized, you need to get it implemented and tested by at least one compiler to explore the design space

[Haskell-cafe] How come pattern match does not recognize this code style?

2009-10-25 Thread Magicloud Magiclouds
Hi, In case of this: case bala of [ bala , bala , bala ] - bala bala bala _ - bala ghc 6.10.4 would fail to compile, because of the wrong indent of line , bala. -- 竹密岂妨流水过 山高哪阻野云飞 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] ANNOUNCE: xmonad 0.9 is now available!

2009-10-25 Thread Don Stewart
http://xmonad.org The xmonad dev team is pleased to announce xmonad 0.9! We think this is a great release. The headlines: * Actions.SpawnOn: Windows go to the workspace they were launched on, even if you're no longer viewing that workspace. Especially

[Haskell-cafe] Is there a way to embed a Haskell interpreter/compiler in a browser. I think this would be a safer language than JavaScript.

2009-10-25 Thread Casey Hawthorne
Is there a way to embed a Haskell interpreter/compiler in a browser. I think this would be a safer language than JavaScript. -- Regards, Casey ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Fortran mixed mode arithmetic expressions - Haskell

2009-10-25 Thread michael rice
Translating Fortran mixed mode arithmetic expressions into Haskell is quite a challenge. Believe it or not c=10.**(11-int(alog10(r)+10)) translates to let c = (**) 10.0 $ fromIntegral $ subtract 11 $ truncate $ (+) (logBase 10.0 r) 10.0 I finally broke the expression below into two parts (k1

Re: [Haskell-cafe] How come pattern match does not recognize this code style?

2009-10-25 Thread Daniel Fischer
Am Montag 26 Oktober 2009 03:39:13 schrieb Magicloud Magiclouds: Hi, In case of this: case bala of [ bala , bala , bala ] - bala bala bala _ - bala ghc 6.10.4 would fail to compile, because of the wrong indent of line , bala. Yes. It must, because the `of' opens a new layout

Re: [Haskell-cafe] Fortran mixed mode arithmetic expressions - Haskell

2009-10-25 Thread Daniel Fischer
Am Montag 26 Oktober 2009 04:21:06 schrieb michael rice: Translating Fortran mixed mode arithmetic expressions into Haskell is quite a challenge. Believe it or not c=10.**(11-int(alog10(r)+10)) translates to let c = (**) 10.0 $ fromIntegral $ subtract 11 $ truncate $ (+) (logBase 10.0 r)

Re: [Haskell-cafe] Fortran mixed mode arithmetic expressions - Haskell

2009-10-25 Thread michael rice
Hi Daniel, I guess I only accidentally got the right answer for c= For my r value of 60.0 *Main truncate $ (+) (logBase 10.0 60.0) 10.0 11 *Main and subtract 11 11 == 0 Thanks for correcting me. Also missed that 11-10=1 simplification. Forest for the trees stuff. Your translation's

Re: [Haskell-cafe] How come pattern match does not recognize this code style?

2009-10-25 Thread Magicloud Magiclouds
Ah, I see. The reason I have to use my style is the same as others: the list is too long On Mon, Oct 26, 2009 at 11:27 AM, Daniel Fischer daniel.is.fisc...@web.de wrote: Am Montag 26 Oktober 2009 03:39:13 schrieb Magicloud Magiclouds: Hi,   In case of this: case bala of   [ bala   ,