Re: [Haskell-cafe] What is simplest extension language to implement?

2010-11-02 Thread Henning Thielemann
On Tue, 2 Nov 2010, Henning Thielemann wrote: Yves Parès schrieb: Because he would have either to recompile the whole program or to use things like hint, both implying that GHC must be installed on the user side (600Mo+ for GHC 6.12.3) Hugs is great for running small Haskell scripts. I

Re: [Haskell-cafe] What is simplest extension language to implement?

2010-11-02 Thread Alexy Khrabrov
Clojure! Sent from my iPad On Nov 2, 2010, at 2:31, Miguel Mitrofanov miguelim...@yandex.ru wrote: Ehm... Forth? TCL? Отправлено с iPhone Nov 2, 2010, в 9:04, Permjacov Evgeniy permea...@gmail.com написал(а): Let us think, that we need some scripting language for our pure haskell

Re: [Haskell-cafe] What is simplest extension language to implement?

2010-11-02 Thread Donn Cave
Quoth Henning Thielemann schlepp...@henning-thielemann.de, Hugs is great for running small Haskell scripts. The quotes around scripts are well chosen, since it sounds like you might be using the word in a different sense of `small program', vs. the extension language notion of a programmable

Re: [Haskell-cafe] What is simplest extension language to implement?

2010-11-02 Thread Brandon Moore
Henning Thielemann, Tue, November 2, 2010 6:11:02 AM Yves Parès schrieb: Because he would have either to recompile the whole program or to use things like hint, both implying that GHC must be installed on the user side (600Mo+ for GHC 6.12.3) Hugs is great for running small Haskell

Re: [Haskell-cafe] What is simplest extension language to implement?

2010-11-02 Thread Sterling Clover
On Tue, Nov 2, 2010 at 11:08 AM, Donn Cave d...@avvanta.com wrote: The quotes around scripts are well chosen, since it sounds like you might be using the word in a different sense of `small program', vs. the extension language notion of a programmable UI. Haskell's suitability for something

Re: [Haskell-cafe] What is simplest extension language to implement?

2010-11-02 Thread John Lask
On 2/11/2010 9:05 PM, Steffen Schuldenzucker wrote: On 11/02/2010 10:40 AM, Yves Parès wrote: Because he would have either to recompile the whole program or to use things like hint, both implying that GHC must be installed on the user side (600Mo+ for GHC 6.12.3) Isn't there a way to use some

Re: [Haskell-cafe] What is simplest extension language to implement?

2010-11-02 Thread Bulat Ziganshin
Hello Permjacov, Tuesday, November 2, 2010, 9:04:00 AM, you wrote: Let us think, that we need some scripting language for our pure haskell project and configure-compile-run is not a way. In such a case a reasonably simple, yet standartized and wide known language should be implemented. What

Re: [Haskell-cafe] what is the status of haskell's mail libraries?

2010-10-27 Thread Henk-Jan van Tuyl
On Wed, 27 Oct 2010 04:46:07 +0200, Michael Snoyman mich...@snoyman.com wrote: I just release mime-mail[1], which can construct multipart messages. Note, that this will not run on Windows, as it gives command /usr/sbin/sendmail Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/

Re: [Haskell-cafe] what is the status of haskell's mail libraries?

2010-10-27 Thread Michael Snoyman
On Wed, Oct 27, 2010 at 10:39 AM, Henk-Jan van Tuyl hjgt...@chello.nl wrote: On Wed, 27 Oct 2010 04:46:07 +0200, Michael Snoyman mich...@snoyman.com wrote: I just release mime-mail[1], which can construct multipart messages. Note, that this will not run on Windows, as it gives command  

[Haskell-cafe] what is the status of haskell's mail libraries?

2010-10-26 Thread Günther Schmidt
Hi all, I was just looking for mail libraries on hackage. You know libraries where I can construct an email, or retrieve on from the server. With retrieving an email I mean something with a bit more structure than a String, or, God help me, a ByteString. Where are we on this subject? I

Re: [Haskell-cafe] what is the status of haskell's mail libraries?

2010-10-26 Thread Michael Snoyman
I just release mime-mail[1], which can construct multipart messages. Michael [1] http://hackage.haskell.org/cgi-bin/hackage-scripts/package/mime-mail 2010/10/27 Günther Schmidt gue.schm...@web.de: Hi all, I was just looking for mail libraries on hackage. You know libraries where I can

[Haskell-cafe] What is -

2010-08-08 Thread michael rice
What is - ? Couldn't find anything on Hoogle. 1)  main = do   x - getLine   -- get the value from the IO monad   putStrLn $ You typed: ++ x 2)  pythags = do   z - [1..] --get the value from the List monad?   x - [1..z]   y - [x..z]   guard (x^2 + y^2 == z^2)  

Re: [Haskell-cafe] What is -

2010-08-08 Thread Henning Thielemann
On Sun, 8 Aug 2010, michael rice wrote: So, Example 2 desugared becomes... [1..] == \z -  ? Yes, [1..] = \z - ... ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] What is -

2010-08-08 Thread Christopher Done
In shortyes, do z - ..; foo desugars to ... = \z - foo The Haskell Report describes `do' notation in detail: http://www.haskell.org/onlinereport/exps.html#sect3.14 Real World Haskell describes its uses: http://book.realworldhaskell.org/read/io.html#io.bind On 8 August 2010 15:36, michael rice

Re: [Haskell-cafe] What is -

2010-08-08 Thread Miguel Mitrofanov
On 8 Aug 2010, at 17:36, michael rice wrote: What is - ? Couldn't find anything on Hoogle. 1) main = do x - getLine -- get the value from the IO monad putStrLn $ You typed: ++ x 2) pythags = do z - [1..] --get the value from the List monad? x - [1..z] y

Re: [Haskell-cafe] What is -

2010-08-08 Thread michael rice
getLine = \x -  -- x is a string at this point [1..] = \x -    -- x is WHAT at this point? MIchael --- On Sun, 8/8/10, Henning Thielemann lemm...@henning-thielemann.de wrote: From: Henning Thielemann lemm...@henning-thielemann.de Subject: Re: [Haskell-cafe] What is - To: michael rice

Re: [Haskell-cafe] What is -

2010-08-08 Thread Christopher Done
On 8 August 2010 16:21, michael rice nowg...@yahoo.com wrote: getLine = \x - -- x is a string at this point [1..] = \x --- x is WHAT at this point? Num n = n A number from the list. ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] What is -

2010-08-08 Thread Markus Läll
Hi Michael, although I never used it myself, lists seem strange in the way that when combining list monads, then all the values go through the chain one by one -- x will be 1 first, then 2, then 3 and so on.. Try it out, to see. (I think the result is then also a list of all combinations of

Re: [Haskell-cafe] What is -

2010-08-08 Thread Daniel van den Eijkel
emann lemm...@henning-thielemann.de wrote: From: Henning Thielemann lemm...@henning-thielemann.de Subject: Re: [Haskell-cafe] What is - To: "michael rice" nowg...@yahoo.com Cc: haskell-cafe@haskell.org Date: Sunday, August 8, 2010, 9:38 AM On Sun, 8 Aug 2010

Re: [Haskell-cafe] What is -

2010-08-08 Thread Bulat Ziganshin
Hello michael, Sunday, August 8, 2010, 5:36:05 PM, you wrote: i highly recommend you to read http://sigfpe.blogspot.com/2006/08/you-could-have-invented-monads-and.html that is the best introduction into monads i know and then http://haskell.org/all_about_monads/html/index.html - comprehensive

Re: [Haskell-cafe] What is -

2010-08-08 Thread Daniel van den Eijkel
this point [1..] = \x - -- x is WHAT at this point? MIchael --- On Sun, 8/8/10, Henning Thielemann lemm...@henning-thielemann.de wrote: From: Henning Thielemann lemm...@henning-thielemann.de Subject: Re: [Haskell-cafe] What is - To: "michael rice"

Re: [Haskell-cafe] What is -

2010-08-08 Thread michael rice
-cafe] What is - To: michael rice nowg...@yahoo.com Date: Sunday, August 8, 2010, 11:01 AM On Sun, 8 Aug 2010, michael rice wrote: How would I print each of these integers, one per line? [1,2,3,4,5] = \x - ? You can't do this from inside the List monad, but you can easily do it from outside

Re: [Haskell-cafe] What is -

2010-08-08 Thread Henning Thielemann
On Sun, 8 Aug 2010, michael rice wrote: That was my suspicion. So, you can't change horses (monads) in mid-stream. A parallel question: main = do ...    -- in the IO monad I know I can have other *do*s in main,   if foo     then do       .       .     else do      .

Re: [Haskell-cafe] What is -

2010-08-08 Thread Jochem Berndsen
michael rice wrote: That was my suspicion. So, you can't change horses (monads) in mid-stream. A parallel question: main = do ...-- in the IO monad I know I can have other *do*s in main, if foo then do . . else do .

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-07-08 Thread Henning Thielemann
On Tue, 6 Jul 2010, Edward Kmett wrote: While we're on the topic, does anyone else get funny looks when they say monads? Sadly, yes. ;) There is no need anymore to bother people with the word monad: http://www.haskell.org.monadtransformer.parallelnetz.de/haskellwiki/Category:Monad

Re: Re: Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-07-07 Thread Zura_
It is ironic, but after reading your paper - Experience Report: Haskell in the Real World, I doubt I'll use Haskell for a performance critical systems. Laziness (and understanding it) is one factor, but there is also GC, which is a real hassle, especially in embedded/mobile systems for a near

Re: Re: Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-07-07 Thread aditya siram
Haskell's FFI [1] is really nice, so you could still write your performance-critical parts in C. -deech [1] http://book.realworldhaskell.org/read/interfacing-with-c-the-ffi.html On Wed, Jul 7, 2010 at 1:54 PM, Zura_ x...@gol.ge wrote: It is ironic, but after reading your paper - Experience

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-07-06 Thread Edward Kmett
On Fri, Jun 18, 2010 at 12:44 AM, Michael Snoyman mich...@snoyman.comwrote: On Fri, Jun 18, 2010 at 5:03 AM, Erik de Castro Lopo mle...@mega-nerd.commle%2...@mega-nerd.com wrote: Pascal? Yeah, I used to program in that about 30 years ago. I actually got that response from someone. You

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-07-06 Thread Yves Parès
I must have the same impediment. We should start a support group, that, or give in and write a compiler. To add insult to injury, I think it should be called Turbo Haskell. That's true... I never noticed, because in French the two words get pronounced very differently. While we're on the

[Haskell-cafe] What is the point of many and some functions in Control.Applicative (for Alternative?)

2010-07-03 Thread Thomas Hartman
When I load up Control.Applicative in ghci and try, eg many [1,2] or many (Just 1) or some [1,2] or some (Just 1) this never returns. What are the practical uses of these combinators, or for using the Alternative class in general? ___ Haskell-Cafe

Re: [Haskell-cafe] What is the point of many and some functions in Control.Applicative (for Alternative?)

2010-07-03 Thread Dan Doel
On Saturday 03 July 2010 3:57:34 pm Thomas Hartman wrote: When I load up Control.Applicative in ghci and try, eg many [1,2] or many (Just 1) or some [1,2] or some (Just 1) this never returns. What are the practical uses of these combinators, or for using the Alternative class in

Re: [Haskell-cafe] What is the point of many and some functions in Control.Applicative (for Alternative?)

2010-07-03 Thread Stephen Tetley
For an applicative parser - many is the same combinator as Parsec's many and some is many1. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] What is the point of many and some functions in Control.Applicative (for Alternative?)

2010-07-03 Thread Philippa Cowderoy
On 03/07/2010 21:11, Stephen Tetley wrote: For an applicative parser - many is the same combinator as Parsec's many and some is many1. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-19 Thread Limestraël
I would expand your definition of monadic to: able to syntactically transformed so as to be put in a sequence where an operation can be altered by the results of the operations preceeding it. IMO your definition matches more applicative. 2010/6/18 Alexander Solla a...@2piix.com On Jun 17,

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-18 Thread Claus Reinke
If you want to use cool languages, you may have to get a cool job. I know: it's easy to say and harder to accomplish. Most functional languages (e.g. Lisp, Haskell, ...) have a challenging time in industry since they require some savvy with multiple levels of higher abstractions and some

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-18 Thread Casey Hawthorne
But as a starting point, and especially to shake up preconceived notions, it still helps to compress common prejudices this way. Many people think they are thinking when they are merely rearranging their prejudices. William James? :) -- Regards, Casey

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-18 Thread Alexander Solla
On Jun 17, 2010, at 9:44 PM, Michael Snoyman wrote: While we're on the topic, does anyone else get funny looks when they say monads? Yes, almost every time. They seem to catch on if I say monadic when I mean able to syntactically transformed so as to be put in a sequence.

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread Henning Thielemann
On Wed, 16 Jun 2010, Marc Weber wrote: Hi Aditya Siram, - maybe shell scripting: running ghci takes longer than starting bash. Compiling is not always an option because executables are bigger than shell scripts or C executables Is Hugs better in this respect?

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread David Virebayre
On Thu, Jun 17, 2010 at 3:38 PM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Wed, 16 Jun 2010, Marc Weber wrote: Hi Aditya Siram, - maybe shell scripting: running ghci takes longer than starting bash.  Compiling is not always an option because executables are bigger than  

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread Brandon S. Allbery KF8NH
On Jun 17, 2010, at 10:17 , David Virebayre wrote: On Thu, Jun 17, 2010 at 3:38 PM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Wed, 16 Jun 2010, Marc Weber wrote: Hi Aditya Siram, - maybe shell scripting: running ghci takes longer than starting bash. Compiling is not always

[Haskell-cafe] What is Haskell unsuitable for? Dis-functional programming!

2010-06-17 Thread caseyh
:) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] What is Haskell unsuitable for? Dis-functional programming!

2010-06-17 Thread Alexey Khudyakov
On Thu, 17 Jun 2010 13:45:16 -0400 cas...@istar.ca wrote: :) Objection! http://hackage.haskell.org/package/BASIC A simplified version of the original BASIC embedded in Haskell. -- Alexey Khudyakov alexey.sklad...@gmail.com ___ Haskell-Cafe

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread Andrew Coppin
aditya siram wrote: But I wanted to ask people are more experienced with Haskell - what kinds of problems is it unsuited for? Judging by the other thread, getting hired might be a valid answer here... ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread aditya siram
No argument there - I'm even afraid to stick it on my resume. At least Clojure can be snuck into the JVM without people noticing - Haskell, unfortunately, is not that shy. -deech On Thu, Jun 17, 2010 at 1:11 PM, Andrew Coppin andrewcop...@btinternet.com wrote: aditya siram wrote: But I wanted

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread Andrew Coppin
aditya siram wrote: No argument there - I'm even afraid to stick it on my resume. At least Clojure can be snuck into the JVM without people noticing - Haskell, unfortunately, is not that shy. Oh, I don't know... Few companies will want you to *use* Haskell, but lots of people seemed to be

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread Darrin Chandler
On Thu, Jun 17, 2010 at 01:38:23PM -0500, aditya siram wrote: Judging by the other thread, getting hired might be a valid answer here... No argument there - I'm even afraid to stick it on my resume. At least Clojure can be snuck into the JVM without people noticing - Haskell, unfortunately,

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread David Leimbach
On Thu, Jun 17, 2010 at 11:57 AM, Darrin Chandler dwchand...@stilyagin.comwrote: On Thu, Jun 17, 2010 at 01:38:23PM -0500, aditya siram wrote: Judging by the other thread, getting hired might be a valid answer here... No argument there - I'm even afraid to stick it on my resume. At

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread Darrin Chandler
On Thu, Jun 17, 2010 at 12:01:53PM -0700, David Leimbach wrote: On Thu, Jun 17, 2010 at 11:57 AM, Darrin Chandler dwchand...@stilyagin.comwrote: On Thu, Jun 17, 2010 at 01:38:23PM -0500, aditya siram wrote: Judging by the other thread, getting hired might be a valid answer here...

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread caseyh
If you want to use cool languages, you may have to get a cool job. I know: it's easy to say and harder to accomplish. Most functional languages (e.g. Lisp, Haskell, ...) have a challenging time in industry since they require some savvy with multiple levels of higher abstractions and some

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread Erik de Castro Lopo
Andrew Coppin wrote: aditya siram wrote: No argument there - I'm even afraid to stick it on my resume. At least Clojure can be snuck into the JVM without people noticing - Haskell, unfortunately, is not that shy. Oh, I don't know... Few companies will want you to *use* Haskell, but

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread Michael Snoyman
On Fri, Jun 18, 2010 at 5:03 AM, Erik de Castro Lopo mle...@mega-nerd.commle%2...@mega-nerd.com wrote: Andrew Coppin wrote: aditya siram wrote: No argument there - I'm even afraid to stick it on my resume. At least Clojure can be snuck into the JVM without people noticing - Haskell,

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-16 Thread Michael Snoyman
On Wed, Jun 16, 2010 at 8:51 AM, Ivan Miljenovic ivan.miljeno...@gmail.comwrote: On 16 June 2010 15:45, Roman Cheplyaka r...@ro-che.info wrote: * aditya siram aditya.si...@gmail.com [2010-06-15 19:47:37-0400] Hi all, Haskell is a great language and in a lot of ways it still hasn't found a

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-16 Thread Ivan Miljenovic
On 16 June 2010 16:00, Michael Snoyman mich...@snoyman.com wrote: On Wed, Jun 16, 2010 at 8:51 AM, Ivan Miljenovic ivan.miljeno...@gmail.com wrote: Next you'll say there's no need for anyone to ask whether they prefer vi or emacs... ;-) Of course *real* programmers use ed. It is the

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-16 Thread David Virebayre
On Wed, Jun 16, 2010 at 8:00 AM, Michael Snoyman mich...@snoyman.com wrote: Next you'll say there's no need for anyone to ask whether they prefer vi or emacs... ;-) Of course *real* programmers use ed. It is the standard editor[1]. *Real* programmers use butterfiles [1]. [1] 

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-16 Thread Ivan Lazar Miljenovic
David Virebayre dav.vire+hask...@gmail.com writes: On Wed, Jun 16, 2010 at 8:00 AM, Michael Snoyman mich...@snoyman.com wrote: Next you'll say there's no need for anyone to ask whether they prefer vi or emacs... ;-) Of course *real* programmers use ed. It is the standard editor[1]. *Real*

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-16 Thread Pierre-Etienne Meunier
- an existing solution exists which does the job and you know you're not going to patch the source ( eg OpenOffice or Linux kernel, or simple build scripts. There is already make etc ) Don't you find yourself looking at the documentation each time you want to write a loop in a Makefile ?

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-16 Thread David Virebayre
On Wed, Jun 16, 2010 at 11:04 AM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: David Virebayre dav.vire+hask...@gmail.com writes: *Real* programmers use butterfiles [1]. If your files are composed of butter, Id hate to see how you store them in an efficient manner... Oh well, at

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-16 Thread Casey Hawthorne
I remember quite a few months ago, someone gave a presentation on Haskell and he admitted that so far all he had used it for were shell scripts. He said that his Haskell shell scripts ran faster than his shell scripts written in ? So all he had used so far, was just the imperative part of

[Haskell-cafe] What is Haskell unsuitable for?

2010-06-15 Thread aditya siram
Hi all, Haskell is a great language and in a lot of ways it still hasn't found a niche, but that's part of what is great about it. But I wanted to ask people are more experienced with Haskell - what kinds of problems is it unsuited for? Have you ever regretted using it for something? Meaning if

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-15 Thread Marc Weber
Hi Aditya Siram, - maybe shell scripting: running ghci takes longer than starting bash. Compiling is not always an option because executables are bigger than shell scripts or C executables Haskell could be the wrong choice if - an existing solution exists which does the job and you know

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-15 Thread Roman Cheplyaka
* aditya siram aditya.si...@gmail.com [2010-06-15 19:47:37-0400] Hi all, Haskell is a great language and in a lot of ways it still hasn't found a niche, but that's part of what is great about it. But I wanted to ask people are more experienced with Haskell - what kinds of problems is it

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-15 Thread Ivan Miljenovic
On 16 June 2010 15:45, Roman Cheplyaka r...@ro-che.info wrote: * aditya siram aditya.si...@gmail.com [2010-06-15 19:47:37-0400] Hi all, Haskell is a great language and in a lot of ways it still hasn't found a niche, but that's part of what is great about it. But I wanted to ask people are

Re: [Haskell-cafe] What makes Haskell difficult as .NET?

2010-05-16 Thread Richard O'Keefe
On May 15, 2010, at 5:40 AM, Daryoush Mehrtash wrote: the speaker talks about F# on .Net platform. Early on in the talk he says that they did F# because haskell would be hard to make as a .Net language.Does anyone know what features of Haskell make it difficult as .Net language?

[Haskell-cafe] What Object Oriented Paradigms Does Haskell Support?

2010-05-15 Thread John Creighton
In response to the discussion What makes Haskell difficult as .NET? http://groups.google.ca/group/haskell-cafe/browse_thread/thread/f61ee38f2082dcbe?hl=en# I thought I'd start a discussion on what object oriented features Haskell supports. A good reference is: Haskell's Overlooked Object System

[Haskell-cafe] What makes Haskell difficult as .NET?

2010-05-14 Thread Daryoush Mehrtash
In this presentation http://norfolk.cs.washington.edu/htbin-post/unrestricted/colloq/details.cgi?id=907 the speaker talks about F# on .Net platform. Early on in the talk he says that they did F# because haskell would be hard to make as a .Net language.Does anyone know what features of

Re: [Haskell-cafe] What makes Haskell difficult as .NET?

2010-05-14 Thread Don Stewart
dmehrtash: In this presentation http://norfolk.cs.washington.edu/htbin-post/unrestricted/colloq/details.cgi?id= 907 the speaker talks about F# on .Net platform. Early on in the talk he says that they did F# because haskell would be hard to make as a .Net language. Does anyone know

Re[2]: [Haskell-cafe] What makes Haskell difficult as .NET?

2010-05-14 Thread Bulat Ziganshin
Hello Don, Friday, May 14, 2010, 9:43:38 PM, you wrote: Most .NET libraries are imperative, use mutable state -- so binding to they are also OOP. ocaml supports OOP while haskell doesn't -- Best regards, Bulatmailto:bulat.zigans...@gmail.com

Re: [Haskell-cafe] What makes Haskell difficult as .NET?

2010-05-14 Thread Daryoush Mehrtash
Would there be issues (lazy evaluation, type system...) with other languages calling a Haskell code in a hypothetical Haskell in .NET? Daryoush On Fri, May 14, 2010 at 10:43 AM, Don Stewart d...@galois.com wrote: dmehrtash: In this presentation

Re: [Haskell-cafe] What makes Haskell difficult as .NET?

2010-05-14 Thread Don Stewart
dmehrtash: Would there be issues (lazy evaluation, type system...) with other languages calling a Haskell code in a hypothetical Haskell in .NET? There are always issues, but conceptually it is no harder than calling Haskell from C, which is relatively straight forward.

Re: [Haskell-cafe] What do _you_ want to see in FGL?

2010-05-10 Thread Henning Thielemann
On Wed, 28 Apr 2010, Ivan Miljenovic wrote: So you don't want the labels to be part of the actual datatype? And for users to then have to deal with any labels they want themselves? Recently I wrote cabal-sort using FGL http://hackage.haskell.org/package/cabal-sort It sorts cabal packages

Re: [Haskell-cafe] What do _you_ want to see in FGL?

2010-05-10 Thread Ivan Lazar Miljenovic
Henning Thielemann lemm...@henning-thielemann.de writes: On Wed, 28 Apr 2010, Ivan Miljenovic wrote: So you don't want the labels to be part of the actual datatype? And for users to then have to deal with any labels they want themselves? Recently I wrote cabal-sort using FGL

Re: [Haskell-cafe] What do _you_ want to see in FGL?

2010-05-10 Thread Henning Thielemann
Ivan Lazar Miljenovic schrieb: Pros for allowing you to use a custom node type: * Matches your data better * No need for extra lookup maps when converting your data to FGL form Cons: * Makes type-sigs uglier/more verbose Unlabelled graphs with custom node type would have only one type

Re: [Haskell-cafe] What do _you_ want to see in FGL?

2010-05-10 Thread Ivan Lazar Miljenovic
Henning Thielemann schlepp...@henning-thielemann.de writes: Ivan Lazar Miljenovic schrieb: Pros for allowing you to use a custom node type: * Matches your data better * No need for extra lookup maps when converting your data to FGL form Cons: * Makes type-sigs uglier/more verbose

Re: [Haskell-cafe] What do _you_ want to see in FGL?

2010-04-28 Thread Henning Thielemann
Ivan Miljenovic schrieb: So you don't want the labels to be part of the actual datatype? And for users to then have to deal with any labels they want themselves? No, you would continue to provide labelled and unlabelled graphs, where unlabelled graphs (or just Graphs) are the base type and

Re: [Haskell-cafe] What do _you_ want to see in FGL?

2010-04-28 Thread Ivan Lazar Miljenovic
Henning Thielemann schlepp...@henning-thielemann.de writes: Ivan Miljenovic schrieb: So you don't want the labels to be part of the actual datatype? And for users to then have to deal with any labels they want themselves? No, you would continue to provide labelled and unlabelled graphs,

Re: [Haskell-cafe] What do _you_ want to see in FGL?

2010-04-27 Thread Henning Thielemann
Ivan Lazar Miljenovic schrieb: Since I've volunteered myself to help maintain/upgrade FGL, what do the people in the community want to see happen with it? I was not happy with the way FGL handles lables so far: http://www.haskell.org/pipermail/libraries/2008-February/009241.html

Re: [Haskell-cafe] What do _you_ want to see in FGL?

2010-04-27 Thread Ivan Lazar Miljenovic
Henning Thielemann schlepp...@henning-thielemann.de writes: I was not happy with the way FGL handles lables so far: http://www.haskell.org/pipermail/libraries/2008-February/009241.html Not sure I follow what you want there: you want to remove the whole concept of labels and replace it with

Re: [Haskell-cafe] What do _you_ want to see in FGL?

2010-04-27 Thread Henning Thielemann
Ivan Lazar Miljenovic schrieb: Henning Thielemann schlepp...@henning-thielemann.de writes: I was not happy with the way FGL handles lables so far: http://www.haskell.org/pipermail/libraries/2008-February/009241.html Not sure I follow what you want there: you want to remove the whole

Re: [Haskell-cafe] What do _you_ want to see in FGL?

2010-04-27 Thread Ivan Miljenovic
On 28 April 2010 08:48, Henning Thielemann schlepp...@henning-thielemann.de wrote: Ivan Lazar Miljenovic schrieb: Henning Thielemann schlepp...@henning-thielemann.de writes: I was not happy with the way FGL handles lables so far:  

Re: [Haskell-cafe] What do _you_ want to see in FGL?

2010-04-26 Thread Neil Brown
Hi, Primarily I want to see in FGL: documentation, documentation and more documentation. The library has lots of undocumented functions (especially the queries, e.g. http://hackage.haskell.org/packages/archive/fgl/5.4.2.2/doc/html/Data-Graph-Inductive-Query-DFS.html has no documentation at

Re: [Haskell-cafe] What do _you_ want to see in FGL?

2010-04-26 Thread Stephen Tetley
Hello Ivan What would your thoughts be on freezing FGL as it is and putting changes into a new package FGL2 or NewFGL? The implementation technique for FGL is independently interesting; Martin Erwig expanded on it in other papers ('Metamorphic Programming') but no one else seems to have picked

Re: [Haskell-cafe] What do _you_ want to see in FGL?

2010-04-26 Thread Ivan Lazar Miljenovic
Stephen Tetley stephen.tet...@gmail.com writes: What would your thoughts be on freezing FGL as it is and putting changes into a new package FGL2 or NewFGL? That's another possibility. However, I was planning on keeping the fundamental layout and design of FGL. I quite like and have used the

[Haskell-cafe] What do _you_ want to see in FGL?

2010-04-25 Thread Ivan Lazar Miljenovic
Since I've volunteered myself to help maintain/upgrade FGL, what do the people in the community want to see happen with it? Here are some ideas that I have regarding FGL: * I had already started working on a new generic graph class [1] (with initial draft at [2]) to act as a wrapper around

Re: [Haskell-cafe] what does the '~' mean ?

2010-04-20 Thread Ryan Ingram
On Thu, Apr 15, 2010 at 10:59 PM, zaxis z_a...@163.com wrote: instance (BinaryDefer a, BinaryDefer b) = BinaryDefer (a,b) where    put (a,b) = put2 a b    get = get2 (,)    size x = let ~(a,b) = x in size a + size b    putFixed (a,b) = putFixed2 a b    getFixed = getFixed2 (,) in `size`

Re: [Haskell-cafe] what does the '~' mean ?

2010-04-16 Thread Ivan Miljenovic
On 16 April 2010 15:59, zaxis z_a...@163.com wrote: instance (BinaryDefer a, BinaryDefer b) = BinaryDefer (a,b) where    put (a,b) = put2 a b    get = get2 (,)    size x = let ~(a,b) = x in size a + size b    putFixed (a,b) = putFixed2 a b    getFixed = getFixed2 (,) in `size` function,

Re: [Haskell-cafe] what does the '~' mean ?

2010-04-16 Thread Stefan Holdermans
Ivan, in `size` function, what does the `~` mean ? A lazy pattern match: http://en.wikibooks.org/wiki/Haskell/Laziness (there is a better name for it, but I can't remember). Irrefutable pattern? ;-) Cheers, Stefan ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] what does the '~' mean ?

2010-04-16 Thread Magnus Therning
On 16/04/10 07:09, Ivan Miljenovic wrote: On 16 April 2010 15:59, zaxis z_a...@163.com wrote: instance (BinaryDefer a, BinaryDefer b) = BinaryDefer (a,b) where put (a,b) = put2 a b get = get2 (,) size x = let ~(a,b) = x in size a + size b putFixed (a,b) = putFixed2 a b

Re: [Haskell-cafe] what does the '~' mean ?

2010-04-16 Thread Ivan Lazar Miljenovic
Stefan Holdermans ste...@vectorfabrics.com writes: Irrefutable pattern? ;-) Ahhh, yes, that's it. I knew it started with `i', but that's about it... -- Ivan Lazar Miljenovic ivan.miljeno...@gmail.com IvanMiljenovic.wordpress.com ___ Haskell-Cafe

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-15 Thread Henning Thielemann
John Meacham schrieb: On Fri, Apr 09, 2010 at 09:07:29AM -0700, Bryan O'Sullivan wrote: On Fri, Apr 9, 2010 at 6:44 AM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: As of 6.12.1, the new -fwarn-unused-do-bind warning is activated with -Wall. This is based off a bug report by Neil

[Haskell-cafe] what does the '~' mean ?

2010-04-15 Thread zaxis
instance (BinaryDefer a, BinaryDefer b) = BinaryDefer (a,b) where put (a,b) = put2 a b get = get2 (,) size x = let ~(a,b) = x in size a + size b putFixed (a,b) = putFixed2 a b getFixed = getFixed2 (,) in `size` function, what does the `~` mean ? Sincerely! - fac n

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-14 Thread Roel van Dijk
Can anyone provide an example of an error that is prevented by this warning? When exactly is it dangerous to ignore a monadic function's return value? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-14 Thread Ivan Lazar Miljenovic
Roel van Dijk vandijk.r...@gmail.com writes: Can anyone provide an example of an error that is prevented by this warning? When exactly is it dangerous to ignore a monadic function's return value? See Neil's original rationale in the bug report: http://hackage.haskell.org/trac/ghc/ticket/3263

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-14 Thread Antoine Latter
On Tue, Apr 13, 2010 at 9:59 PM, Max Cantor mxcan...@gmail.com wrote: I'm in the camp of adding -fno-warn-unused-do-bind to my cabal files.  I hate sacrificing the purity of -Wall but I have so many forkIOs in my code that I think it was the best option. Max I think a nice compromise

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-14 Thread Nicolas Pouillard
On Wed, 14 Apr 2010 09:15:04 -0500, Antoine Latter aslat...@gmail.com wrote: On Tue, Apr 13, 2010 at 9:59 PM, Max Cantor mxcan...@gmail.com wrote: I'm in the camp of adding -fno-warn-unused-do-bind to my cabal files.  I hate sacrificing the purity of -Wall but I have so many forkIOs in my

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-14 Thread John Meacham
On Fri, Apr 09, 2010 at 09:07:29AM -0700, Bryan O'Sullivan wrote: On Fri, Apr 9, 2010 at 6:44 AM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: As of 6.12.1, the new -fwarn-unused-do-bind warning is activated with -Wall. This is based off a bug report by Neil Mitchell:

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-13 Thread Max Cantor
I'm in the camp of adding -fno-warn-unused-do-bind to my cabal files. I hate sacrificing the purity of -Wall but I have so many forkIOs in my code that I think it was the best option. Max On Apr 10, 2010, at 3:08 PM, Ivan Miljenovic wrote: On 10 April 2010 02:07, Bryan O'Sullivan

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-10 Thread Ivan Miljenovic
On 10 April 2010 00:20, Neil Brown nc...@kent.ac.uk wrote: The comments in that bug report actually mention My patch does not warn on uses of , only in do-notation, where the situation is more clear cut.  I take to be an explicit sign that the user wants to ignore the result of the first

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-10 Thread Ivan Miljenovic
On 10 April 2010 02:07, Bryan O'Sullivan b...@serpentine.com wrote: Personally, I find it to be tremendously noisy and unhelpful, and I always edit my .cabal files to turn it off. I think of it as a usability regression. Yeah, I'm very tempted to do this as well. This warning might make sense

[Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-09 Thread Ivan Lazar Miljenovic
As of 6.12.1, the new -fwarn-unused-do-bind warning is activated with -Wall. This is based off a bug report by Neil Mitchell: http://hackage.haskell.org/trac/ghc/ticket/3263 . However, does it make sense for this to be turned on with -Wall? For starters, why should this warning apply only to

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-09 Thread Neil Brown
Ivan Lazar Miljenovic wrote: As of 6.12.1, the new -fwarn-unused-do-bind warning is activated with -Wall. This is based off a bug report by Neil Mitchell: http://hackage.haskell.org/trac/ghc/ticket/3263 . However, does it make sense for this to be turned on with -Wall? For starters, why

<    1   2   3   4   5   6   7   8   9   10   >