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
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
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
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
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
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
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
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/
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
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
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
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)
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
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
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
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
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
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
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
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
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"
-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
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
.
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
.
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
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
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
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
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
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
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
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
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
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,
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
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
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.
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?
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
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 mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
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
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
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
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
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,
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
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...
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
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
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,
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
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
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]
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*
- 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 ?
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
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
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
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
* 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
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
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?
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
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
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
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
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
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.
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
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
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
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
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
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,
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
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
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
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:
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
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
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
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
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`
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,
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
201 - 300 of 953 matches
Mail list logo