Re: [Haskell-cafe] Announcing OneTuple-0.1.0

2008-10-03 Thread ajb
G'day all. I asked: But more to the point: Can it send email? Quoting John Dorsey [EMAIL PROTECTED]: Can you give an example of a use case? I don't need one. It's not maximally flexible until it can send email. Cheers, Andrew Bromage ___

Re: [Haskell-cafe] Announcing OneTuple-0.1.0

2008-10-03 Thread ajb
G'day all. Quoting Lennart Augustsson [EMAIL PROTECTED]: But I called it One. That's a _terrible_ name. One, surely is (), just as Zero is Void. While I'm at it, I really don't like the lexical syntax of comments. Someone should fix that. Cheers, Andrew Bromage

[Haskell-cafe] Re: Announcing OneTuple-0.1.0

2008-10-03 Thread Benjamin L . Russell
On Thu, 2 Oct 2008 14:46:32 -0700, Jason Dusek [EMAIL PROTECTED] wrote: John Dorsey [EMAIL PROTECTED] wrote: Now you can: * Solve any of the software problems that cannot be solved without the singleton tuple ! What would those be? I'm still trying to figure out how a singelton tuple

Re: [Haskell-cafe] A question about constraints

2008-10-03 Thread Luke Palmer
On Thu, Oct 2, 2008 at 7:51 AM, jean-christophe mincke [EMAIL PROTECTED] wrote: Hello, Thank you for your comments. Would not it be feasible to add constraints at type definition, something like, in a somewhat free style syntax data String2 = String2 (s::String) with length s = 5 and

[Haskell-cafe] Haskell participating in big science like CERN Hadrian...

2008-10-03 Thread Galchin, Vasili
Hello, One of my interests based on my education is grand challenge science. Ok .. let's take the CERN Hadrian Accelerator. Where do you think Haskell can fit into the CERN Hadrian effort currently? Where do you think think Haskell currently is lacking and will have to be improved

Re: [Haskell-cafe] Announcing OneTuple-0.1.0

2008-10-03 Thread Jason Dusek
Jason Dagit [EMAIL PROTECTED] wrote: Jason Dusek [EMAIL PROTECTED] wrote: John Dorsey [EMAIL PROTECTED] wrote: Now you can: * Solve any of the software problems that cannot be solved without the singleton tuple ! What would those be? I'm still trying to figure out how a

RE: [Haskell-cafe] Hmm, what license to use?

2008-10-03 Thread Mitchell, Neil
Hi You mean shared libraries without the opportunity to inline library code? This would result in a huge performance loss, I think. Usually _mild_ performance loss, in exchange for major code-size savings, I would think. C obviously has worked quite fine under exactly this

[Haskell-cafe] Is Haskell-Cafe down?

2008-10-03 Thread Benjamin L . Russell
About two hours ago, I sent two follow-ups to the Announcing OneTuple-0.1.0 thread on the Haskell-Cafe mailing list, neither of which has appeared in either my newsreader or my Inbox, even though they have both appeared on the Web archive; viz.: [Haskell-cafe] Re: Announcing OneTuple-0.1.0

RE: [Haskell-cafe] Announcing OneTuple-0.1.0

2008-10-03 Thread Mitchell, Neil
Quoting Lennart Augustsson [EMAIL PROTECTED]: But I called it One. I did a similar one for Yhc, and I think I called it Box. My guess was that boxing/unboxing wasn't an overloaded enough term :-) Thanks Neil ==

[Haskell-cafe] Re: [Haskell] ANN: Haskell-Embedded System Design: ForSyDe 3.0 and Tutorial

2008-10-03 Thread Alfonso Acosta
On Wed, Oct 1, 2008 at 7:38 PM, Don Stewart [EMAIL PROTECTED] wrote: Awesome, native packages now available, http://aur.archlinux.org/packages.php?ID=20422 Thanks Don! ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Kind-agnostic type classes

2008-10-03 Thread Florian Weimer
I'm trying to encode a well-known, informally-specified type system in Haskell. What causes problems for me is that type classes force types to be of a specific kind. The system I'm targeting however assumes that its equivalent of type classes are kind-agnositic. For instance, I've got class

Re: [Haskell-cafe] Haskell participating in big science like CERN Hadrian...

2008-10-03 Thread Dougal Stanton
2008/10/3 Galchin, Vasili [EMAIL PROTECTED]: Hello, One of my interests based on my education is grand challenge science. Ok .. let's take the CERN Hadrian Accelerator. Where do you think Haskell can fit into the CERN Hadrian effort currently? Where do you think think Haskell

Re: [Haskell-cafe] mysql (hsql-mysql-1.7) on Linux with GHC 8.3 - cabal issues

2008-10-03 Thread Anton Tayanovskyy
John, Thank you for your reply. I benchmarked HDBC.ODBC with MySQL and it is indeed working well. So whatever slow results I used to get were due to that particular setup. It looks that HDBC will suit my needs as well. Thanks, --A What's more, HDBC has a stronger and more versatile API than

Re: [Haskell-cafe] Announcing OneTuple-0.1.0

2008-10-03 Thread Lennart Augustsson
Let me pick one example. Let's make a class that can convert between tuples and lists. Of course there are restriction when this works, but it can still be useful. class TupleList t l | t - l where tupleToList :: t - l listToTuple :: l - t instance TupleList () [a] where tupleToList

Re: [Haskell-cafe] Is Haskell-Cafe down?

2008-10-03 Thread minh thu
2008/10/3 Benjamin L. Russell [EMAIL PROTECTED]: About two hours ago, I sent two follow-ups to the Announcing OneTuple-0.1.0 thread on the Haskell-Cafe mailing list, neither of which has appeared in either my newsreader or my Inbox, even though they have both appeared on the Web archive; viz.:

Re: [Haskell-cafe] Hmm, what license to use?

2008-10-03 Thread minh thu
2008/10/3 Mitchell, Neil [EMAIL PROTECTED]: Hi You mean shared libraries without the opportunity to inline library code? This would result in a huge performance loss, I think. Usually _mild_ performance loss, in exchange for major code-size savings, I would think. C obviously has

[Haskell-cafe] Re: Hmm, what license to use?

2008-10-03 Thread Simon Marlow
Magnus Therning wrote: On Wed, Oct 1, 2008 at 6:03 PM, Simon Marlow [EMAIL PROTECTED] wrote: [..] Dynamic linking doesn't solve all the problems, we still have the problem that GHC does a lot of cross-module inlining, regardless of whether dynamic linking is used. However, I really would like

Re: [Haskell-cafe] Kind-agnostic type classes

2008-10-03 Thread Derek Elkins
On Fri, 2008-10-03 at 12:22 +0200, Florian Weimer wrote: I'm trying to encode a well-known, informally-specified type system in Haskell. What causes problems for me is that type classes force types to be of a specific kind. The system I'm targeting however assumes that its equivalent of type

Re: [Haskell-cafe] Kind-agnostic type classes

2008-10-03 Thread Luke Palmer
On Fri, Oct 3, 2008 at 4:22 AM, Florian Weimer [EMAIL PROTECTED] wrote: I'm trying to encode a well-known, informally-specified type system in Haskell. What causes problems for me is that type classes force types to be of a specific kind. The system I'm targeting however assumes that its

Re: [Haskell-cafe] Kind-agnostic type classes

2008-10-03 Thread Florian Weimer
* Derek Elkins: On Fri, 2008-10-03 at 12:22 +0200, Florian Weimer wrote: I'm trying to encode a well-known, informally-specified type system in Haskell. What causes problems for me is that type classes force types to be of a specific kind. The system I'm targeting however assumes that its

Re: [Haskell-cafe] Haskell participating in big science like CERN Hadrian...

2008-10-03 Thread John Van Enk
...gigabytes of data per second that they end up keeping, out of the petabytes that are produced in the first place... Sounds like a good application for lazy evaluation! (Actually, they may have to read over it all to make sure they can throw it away...) On Fri, Oct 3, 2008 at 6:47 AM, Dougal

Re: [Haskell-cafe] Haskell participating in big science like CERN Hadrian...

2008-10-03 Thread Rafael Gustavo da Cunha Pereira Pinto
On Fri, Oct 3, 2008 at 07:47, Dougal Stanton [EMAIL PROTECTED]wrote: 2008/10/3 Galchin, Vasili [EMAIL PROTECTED]: Hello, One of my interests based on my education is grand challenge science. Ok .. let's take the CERN Hadrian Accelerator. Where do you think Haskell can

Re: [Haskell-cafe] Haskell participating in big science like CERN Hadrian...

2008-10-03 Thread Anton van Straaten
Dougal Stanton wrote: 2008/10/3 Galchin, Vasili [EMAIL PROTECTED]: Hello, One of my interests based on my education is grand challenge science. Ok .. let's take the CERN Hadrian Accelerator. Where do you think Haskell can fit into the CERN Hadrian effort currently? Where do you

[Haskell-cafe] Re: Hmm, what license to use?

2008-10-03 Thread Magnus Therning
On Fri, Oct 3, 2008 at 12:59 PM, Simon Marlow [EMAIL PROTECTED] wrote: Magnus Therning wrote: On Wed, Oct 1, 2008 at 6:03 PM, Simon Marlow [EMAIL PROTECTED] wrote: [..] Dynamic linking doesn't solve all the problems, we still have the problem that GHC does a lot of cross-module inlining,

[Haskell-cafe] Re: Hmm, what license to use?

2008-10-03 Thread Simon Marlow
Magnus Therning wrote: On Fri, Oct 3, 2008 at 12:59 PM, Simon Marlow [EMAIL PROTECTED] wrote: Magnus Therning wrote: On Wed, Oct 1, 2008 at 6:03 PM, Simon Marlow [EMAIL PROTECTED] wrote: [..] Dynamic linking doesn't solve all the problems, we still have the problem that GHC does a lot of

Re: [Haskell-cafe] Alex and Flex

2008-10-03 Thread Brandon S. Allbery KF8NH
On Oct 3, 2008, at 09:24 , Manlio Perillo wrote: Manlio Perillo ha scritto: However I have noted that there are some difference in the syntax between Alex and Flex? What is the rationale? By the way, here is the list of differences between Alex and Flex I have found, for people

Re: [Haskell-cafe] Kind-agnostic type classes

2008-10-03 Thread Florian Weimer
* Luke Palmer: For instance, I've got class Assignable a where assign :: a - a - IO () class Swappable a where swap :: a - a - IO () class CopyConstructible a where copy :: a - IO a class (Assignable a, CopyConstructible a) = ContainerType a class (Swappable c, Assignable

Re: [Haskell-cafe] Hmm, what license to use?

2008-10-03 Thread Wolfgang Jeltsch
Am Freitag, 3. Oktober 2008 13:36 schrieben Sie: […] What happens in the C++ world where good chunk of functionnalities are in header files (templates or inline methods); is there the same LGPL problem that the one discussed here w.r.t. static/shared linking ? I've never heard about

Re: [Haskell-cafe] Announcing OneTuple-0.1.0

2008-10-03 Thread Jason Dusek
Lennart Augustsson [EMAIL PROTECTED] wrote: Let me pick one example. Let's make a class that can convert between tuples and lists. -- XXX This doesn't work, and is just wrong. -- instance TupleList (a) [a] where --tupleToList (a) = [a] --listToTuple [a] = (a) It's not clear to me

Re: [Haskell-cafe] Hmm, what license to use?

2008-10-03 Thread David Leimbach
On Fri, Oct 3, 2008 at 4:36 AM, minh thu [EMAIL PROTECTED] wrote: 2008/10/3 Mitchell, Neil [EMAIL PROTECTED]: Hi You mean shared libraries without the opportunity to inline library code? This would result in a huge performance loss, I think. Usually _mild_ performance

Re: [Haskell-cafe] Hmm, what license to use?

2008-10-03 Thread Jonathan Cast
On Fri, 2008-10-03 at 10:08 -0700, David Leimbach wrote: On Fri, Oct 3, 2008 at 4:36 AM, minh thu [EMAIL PROTECTED] wrote: 2008/10/3 Mitchell, Neil [EMAIL PROTECTED]: Hi You mean shared libraries without the opportunity to

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Andrew Coppin
Tillmann Rendel wrote: Seriously, what are you talking about? The haddock page for Control.Applicative hoogle links to begins with This module describes a structure intermediate between a functor and a monad: it provides pure expressions and sequencing, but no binding. (Technically, a strong

Re: [Haskell-cafe] Kind-agnostic type classes

2008-10-03 Thread David Menendez
On Fri, Oct 3, 2008 at 9:49 AM, Luke Palmer [EMAIL PROTECTED] wrote: On Fri, Oct 3, 2008 at 4:22 AM, Florian Weimer [EMAIL PROTECTED] wrote: I'm trying to encode a well-known, informally-specified type system in Haskell. What causes problems for me is that type classes force types to be of a

Re: [Haskell-cafe] Alex and Flex

2008-10-03 Thread Manlio Perillo
Manlio Perillo ha scritto: Manlio Perillo ha scritto: Hi. I'm starting to write a CSS parser with Alex and Happy. The grammar is defined here: http://www.w3.org/TR/CSS21/grammar.html However I have noted that there are some difference in the syntax between Alex and Flex? What is the

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Andrew Coppin
David Menendez wrote: On Thu, Oct 2, 2008 at 3:40 PM, Andrew Coppin [EMAIL PROTECTED] wrote: David Menendez wrote: You could try using an exception monad transformer here I thought I already was? No, a monad transformer is a type constructor that takes a monad as an

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Jake McArthur
Andrew Coppin wrote: But on the other hand, that would seem to imply that every monad is trivially applicative, yet studying the libraries this is not the case. Indeed several of the libraries seem to go out of their way to implement duplicate functionallity for monad and applicative. (Hence

Re: [Haskell-cafe] Hmm, what license to use?

2008-10-03 Thread Micah Cowan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wolfgang Jeltsch wrote: Am Donnerstag, 2. Oktober 2008 20:33 schrieben Sie: Wolfgang Jeltsch wrote: You mean shared libraries without the opportunity to inline library code? This would result in a huge performance loss, I think. Usually _mild_

Re: [Haskell-cafe] Alex and Flex

2008-10-03 Thread Manlio Perillo
Manlio Perillo ha scritto: [...] Another problem. In this rule: @comment= \/\*[^\*]*\*+([^\/\*][^\*]*\*+)*\/ [^\*] means all characters except '*', but Alex seems to not include the new line character. Again sorry. The problem was not here. There was a missing rule for '.', to

[Haskell-cafe] Hoogle? [Stacking monads]

2008-10-03 Thread Andrew Coppin
Andrew Coppin wrote: After much searching (Hoogle rather failed me here), I discover that... I could probably elaborate on that point further. Try doing a Hoogle search for c1 (c2 x) - c2 (c1 x). Hoogle correctly states that Data.Traversable.sequence will do it for you. Now try doing c1 k

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Jake McArthur
Andrew Coppin wrote: (As an aside, Control.Monad.ap is not a function I've ever heard of. It seems simple enough, but what an unfortunate name...!) I think it makes sense. It stands for apply, or at least that is what I think of when I see it. If we have a function f :: A - B - C - D and

Re: [Haskell-cafe] Re: Hmm, what license to use?

2008-10-03 Thread Mads Lindstrøm
Hi Gour wrote: Don == Don Stewart [EMAIL PROTECTED] writes: Don * Only a small percent of Haskell libarires are LGPL, and Don nothing for which we don't have workarounds (e.g. HDBC vs Don galois-sqlite3 vs takusen). Hmm, Gtk2Hs wxhaskell - major GUI libs... wxHaskell uses a

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Andrew Coppin
Jake McArthur wrote: Andrew Coppin wrote: (As an aside, Control.Monad.ap is not a function I've ever heard of. It seems simple enough, but what an unfortunate name...!) I think it makes sense. It stands for apply, or at least that is what I think of when I see it. There can be little doubt

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread David Menendez
On Fri, Oct 3, 2008 at 1:39 PM, Andrew Coppin [EMAIL PROTECTED] wrote: David Menendez wrote: Applicative is a class of functors that are between Functor and Monad in terms of capabilities. Instead of (=), they have an operation (*) :: f (a - b) - f a - f b, which generalizes Control.Monad.ap.

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread David Menendez
On Fri, Oct 3, 2008 at 3:10 PM, Andrew Coppin [EMAIL PROTECTED] wrote: Jake McArthur wrote: Andrew Coppin wrote: But on the other hand, that would seem to imply that every monad is trivially applicative, yet studying the libraries this is not the case. Actually, it is the case. It is

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Andrew Coppin
Jake McArthur wrote: Andrew Coppin wrote: But on the other hand, that would seem to imply that every monad is trivially applicative, yet studying the libraries this is not the case. Actually, it is the case. It is technically possible to write: instance Monad m = Applicative m where

Re: [Haskell-cafe] Haskell participating in big science like CERN Hadrian...

2008-10-03 Thread Don Stewart
wchogg: On Fri, Oct 3, 2008 at 5:47 AM, Dougal Stanton [EMAIL PROTECTED] wrote: 2008/10/3 Galchin, Vasili [EMAIL PROTECTED]: Hello, One of my interests based on my education is grand challenge science. Ok .. let's take the CERN Hadrian Accelerator. Where do you think

Re: [Haskell-cafe] Announcing OneTuple-0.1.0

2008-10-03 Thread David Menendez
On Fri, Oct 3, 2008 at 3:17 AM, Jason Dusek [EMAIL PROTECTED] wrote: Perhaps I am lacking in imagination, but I still can't see the value of one tuples. You can use them to defeat seq. undefined `seq` x == undefined OneTuple undefined `seq` x == x That might be useful if a polymorphic

Re: [Haskell-cafe] Health effects

2008-10-03 Thread Paul Johnson
Andrew Coppin wrote: Oh, no. The entire bar is 2 Kg, I wasn't actually planning to eat the whole thing! o_O My god, my pancreas would explode or something... My Dad once ate two bars of dark cooking chocolate. He said he got some odd visual distortions; flickering auras around things, and

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Ryan Ingram
On Fri, Oct 3, 2008 at 12:10 PM, Andrew Coppin [EMAIL PROTECTED] wrote: Again, it looks like MonadPlus == Monad + Monoid, except all the method names are different. Why do we have this confusing duplication? MonadPlus is a class for type constructors, generic over the type of the elements:

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Andrew Coppin
David Menendez wrote: On Fri, Oct 3, 2008 at 1:39 PM, Andrew Coppin [EMAIL PROTECTED] wrote: (As an aside, Control.Monad.ap is not a function I've ever heard of. It seems simple enough, but what an unfortunate name...!) I believe it's short for apply. Yeah, but shame about the

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Andrew Coppin
David Menendez wrote: For some monads, there are implementations of * which are more efficient than the one provided by ap. Similarly, there are ways to implement fmap which are more efficient than using liftM. Of course, the *real* reason we don't define the instance given above is that there

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Ryan Ingram
On Fri, Oct 3, 2008 at 12:43 PM, Andrew Coppin [EMAIL PROTECTED] wrote: factorise n = do x - [1..] y - [1..] if x*y == n then return (x,y) else fail not factors This is a very stupid way to factorise an integer. (But it's also very general...) As you may already be aware, this fails

Re: [Haskell-cafe] Health effects

2008-10-03 Thread Andrew Coppin
Paul Johnson wrote: Andrew Coppin wrote: Oh, no. The entire bar is 2 Kg, I wasn't actually planning to eat the whole thing! o_O My god, my pancreas would explode or something... My Dad once ate two bars of dark cooking chocolate. He said he got some odd visual distortions; flickering auras

Re: [Haskell-cafe] Health effects

2008-10-03 Thread Alex Sandro Queiroz e Silva
Hallo, Andrew Coppin wrote: In other news... apparently chocolate is leathaly toxic to dogs. Random. Chicolate is extremely toxic to cats. Cheers, -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Andrew Coppin
Andrew Coppin wrote: run_or s0 x y = let either_rset1 = sequence $ run s0 x either_rset2 = sequence $ run s0 y either_rset3 = do rset1 - either_rset1; rset2 - either_rset2; return (merge rset1 rset2) in case either_rset3 of Left e- throwError e Right rset - lift

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Jonathan Cast
On Fri, 2008-10-03 at 20:43 +0100, Andrew Coppin wrote: David Menendez wrote: It wasn't until fairly recently that people realized that you could do useful things if you had return and ap, but not (=), which why we have some unfortunate limitations in the Haskell prelude, like Applicative

[Haskell-cafe] Monoids [Stacking monads]

2008-10-03 Thread Andrew Coppin
Ryan Ingram wrote: Newtypes is the general ( sadly unsatisfactory) answer: Oh dear. Well that _is_ pretty unsatisfactory... Given the constraints of the Haskell type system, could we do better in principle? ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Brandon S. Allbery KF8NH
On Oct 3, 2008, at 15:10 , Andrew Coppin wrote: The reason for the separation of the two for many functions is so that types which are instances of only one of the two can still take advantage of the functionality. Well, that makes sense once you assume two seperate, unconnected classes.

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Andrew Coppin
Jonathan Cast wrote: On Fri, 2008-10-03 at 20:43 +0100, Andrew Coppin wrote: OK. So it's broken for compatibility then? (Presumably any time you change something from the Prelude, mass breakage ensues!) I'm not a big fan of backward-compatibility myself, but changing Monad to be a

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Jonathan Cast
On Fri, 2008-10-03 at 21:02 +0100, Andrew Coppin wrote: Jonathan Cast wrote: On Fri, 2008-10-03 at 20:43 +0100, Andrew Coppin wrote: OK. So it's broken for compatibility then? (Presumably any time you change something from the Prelude, mass breakage ensues!) I'm not a big

[Haskell-cafe] Building gtkhs, OpenSolaris x86

2008-10-03 Thread Lally Singh
Hey folks, I know it seems an obtuse OS to build on, but trust me, it's pretty nice despite the hassles. I'm getting these three errors (repeated a few times) while building gtkhs-0.9.13 on ghc 6.8.3, and was hoping for any suggestions on where to go from here:

Re: [Haskell-cafe] Announcing OneTuple-0.1.0

2008-10-03 Thread Lennart Augustsson
But (a) is not a lifted version of a, whereas (a,b) is a lifted version of the a b product. So it's not consistent, and thereby wrong. -- Lennart On Fri, Oct 3, 2008 at 6:07 PM, Jason Dusek [EMAIL PROTECTED] wrote: Lennart Augustsson [EMAIL PROTECTED] wrote: Let me pick one example. Let's

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Andrew Coppin
Brandon S. Allbery KF8NH wrote: On Oct 3, 2008, at 15:10 , Andrew Coppin wrote: Again, it looks like MonadPlus == Monad + Monoid, except all the method names are different. Why do we have this confusing duplication? Because typeclasses aren't like OO classes. Specifically: while you can

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Jonathan Cast
On Fri, 2008-10-03 at 12:59 -0700, Jonathan Cast wrote: On Fri, 2008-10-03 at 21:02 +0100, Andrew Coppin wrote: Jonathan Cast wrote: On Fri, 2008-10-03 at 20:43 +0100, Andrew Coppin wrote: OK. So it's broken for compatibility then? (Presumably any time you change something from

Re: [Haskell-cafe] Health effects

2008-10-03 Thread Brandon S. Allbery KF8NH
On Oct 3, 2008, at 15:38 , Paul Johnson wrote: Andrew Coppin wrote: Oh, no. The entire bar is 2 Kg, I wasn't actually planning to eat the whole thing! o_O My god, my pancreas would explode or something... My Dad once ate two bars of dark cooking chocolate. He said he got some odd visual

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Jake McArthur
Andrew Coppin wrote: I was thinking more, why not just delete MonadPlus completely, and have any function that needs a monad that's also a monoid say so in its context? (Obviously one of the answers to that is because it would break vast amounts of existing code.) Because they are not the

Re: [Haskell-cafe] Alex and Flex

2008-10-03 Thread Manlio Perillo
Brandon S. Allbery KF8NH ha scritto: On Oct 3, 2008, at 09:24 , Manlio Perillo wrote: Manlio Perillo ha scritto: However I have noted that there are some difference in the syntax between Alex and Flex? What is the rationale? By the way, here is the list of differences between Alex and Flex

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Jonathan Cast
On Fri, 2008-10-03 at 21:12 +0100, Andrew Coppin wrote: Brandon S. Allbery KF8NH wrote: On Oct 3, 2008, at 15:10 , Andrew Coppin wrote: Again, it looks like MonadPlus == Monad + Monoid, except all the method names are different. Why do we have this confusing duplication? Because

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Andrew Coppin
Jake McArthur wrote: Andrew Coppin wrote: I was thinking more, why not just delete MonadPlus completely, and have any function that needs a monad that's also a monoid say so in its context? (Obviously one of the answers to that is because it would break vast amounts of existing code.)

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread David Menendez
On Fri, Oct 3, 2008 at 3:43 PM, Andrew Coppin [EMAIL PROTECTED] wrote: David Menendez wrote: It wasn't until fairly recently that people realized that you could do useful things if you had return and ap, but not (=), which why we have some unfortunate limitations in the Haskell prelude, like

Re: [Haskell-cafe] Announcing OneTuple-0.1.0

2008-10-03 Thread Derek Elkins
On Fri, 2008-10-03 at 15:38 -0400, David Menendez wrote: On Fri, Oct 3, 2008 at 3:17 AM, Jason Dusek [EMAIL PROTECTED] wrote: Perhaps I am lacking in imagination, but I still can't see the value of one tuples. You can use them to defeat seq. undefined `seq` x == undefined OneTuple

Re: [Haskell-cafe] Announcing OneTuple-0.1.0

2008-10-03 Thread Don Stewart
derek.a.elkins: On Fri, 2008-10-03 at 15:38 -0400, David Menendez wrote: On Fri, Oct 3, 2008 at 3:17 AM, Jason Dusek [EMAIL PROTECTED] wrote: Perhaps I am lacking in imagination, but I still can't see the value of one tuples. You can use them to defeat seq. undefined `seq` x

Re: [Haskell-cafe] Announcing OneTuple-0.1.0

2008-10-03 Thread Jason Dusek
Lennart Augustsson [EMAIL PROTECTED] wrote: But (a) is not a lifted version of a, whereas (a,b) is a lifted version of the a b product. So it's not consistent, and thereby wrong. Well, we can't represent the unlifted product in Haskell, right? You have to use some constructor. So if we

Re: [Haskell-cafe] Health effects

2008-10-03 Thread Miguel Mitrofanov
On 3 Oct 2008, at 23:50, Andrew Coppin wrote: For what it's worth, 80% of my diet is cheese, and 10% is chocolate. Remind me not to take food out of your hands, OK? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Building gtkhs, OpenSolaris x86

2008-10-03 Thread Brandon S. Allbery KF8NH
On 2008 Oct 3, at 16:08, Lally Singh wrote: I know it seems an obtuse OS to build on, but trust me, it's pretty nice despite the hassles. I'm getting these three errors (repeated a few times) while building gtkhs-0.9.13 on ghc 6.8.3, and was hoping for any suggestions on where to go from

Re: [Haskell-cafe] Haskell participating in big science like CERN Hadrian...

2008-10-03 Thread Galchin, Vasili
On Fri, Oct 3, 2008 at 2:38 PM, Don Stewart [EMAIL PROTECTED] wrote: wchogg: On Fri, Oct 3, 2008 at 5:47 AM, Dougal Stanton [EMAIL PROTECTED] wrote: 2008/10/3 Galchin, Vasili [EMAIL PROTECTED]: Hello, One of my interests based on my education is grand challenge science. Ok

Re: [Haskell-cafe] Re: having fun with GADT's

2008-10-03 Thread Luke Palmer
On Tue, Sep 30, 2008 at 6:25 PM, Anatoly Yakovenko [EMAIL PROTECTED] wrote: has the with syntax described in http://www.haskell.org/pipermail/haskell/2005-May/015815.html been replaced with the where syntax? so data Foo a where FooInt :: FooInt the same thing as data Foo A = FooInt

Re: [Haskell-cafe] Haskell participating in big science like CERN Hadrian...

2008-10-03 Thread Galchin, Vasili
I have to write in C++ everyday. I just worked at D*ll .. a total train wreck . software very unstable .. written in C++ Maybe a lot of blame can be put at the door of very lazy people; however, in my opinion, the strong/static type checking seriously corral lazy developers. I have found

Re: [Haskell-cafe] Health effects

2008-10-03 Thread Brandon S. Allbery KF8NH
On 2008 Oct 3, at 15:50, Andrew Coppin wrote: Paul Johnson wrote: Andrew Coppin wrote: Oh, no. The entire bar is 2 Kg, I wasn't actually planning to eat the whole thing! o_O My god, my pancreas would explode or something... My Dad once ate two bars of dark cooking chocolate. He said he

Re: [Haskell-cafe] pure Haskell database

2008-10-03 Thread Sterling Clover
So the issue is one writer, many readers across processes? Creating an actual mini-db-server might be the proper way to do this. Expose a simple socket by which other processes can query the DB state. If you need persistence between runs of your main server you can always snapshot on

[Haskell-cafe] Haskell-cafe-cafe? Was: Re: Health effects

2008-10-03 Thread Christopher Lane Hinson
What /is/ it with haskell-cafe lately? Do we need a haskell-blah mailing list? I would subscribe to that. Hell, I would post to it probably more than I post to haskell-cafe. But I'd also divert it to a separate mailbox for when I have too much free time. Maybe call it haskell-cafe-cafe?

Re: [Haskell-cafe] Haskell-cafe-cafe? Was: Re: Health effects

2008-10-03 Thread brian
On Fri, Oct 3, 2008 at 8:01 PM, Christopher Lane Hinson [EMAIL PROTECTED] wrote: What /is/ it with haskell-cafe lately? Do we need a haskell-blah mailing list? Thanks for saying it. +1. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Tillmann Rendel
Andrew Coppin wrote: ap generalizes the liftM* functions, so liftM2 f a b = return f `ap` a `ap` b liftM3 f a b c = return f `ap` a `ap` b `ap` c and so forth. Now that at least makes sense. (It's non-obvious that you can use it for this. If it weren't for curried functions, this wouldn't

Re: [Haskell-cafe] Stacking monads

2008-10-03 Thread Tillmann Rendel
Andrew Coppin wrote: run_or s0 x y = let either_rset1 = sequence $ run s0 x either_rset2 = sequence $ run s0 y either_rset3 = do rset1 - either_rset1; rset2 - either_rset2; return (merge rset1 rset2) in case either_rset3 of Left e- throwError e Right rset - lift

Re: [Haskell-cafe] Announcing OneTuple-0.1.0

2008-10-03 Thread Tim Chevalier
On Fri, Oct 3, 2008 at 2:29 PM, Jason Dusek [EMAIL PROTECTED] wrote: Lennart Augustsson [EMAIL PROTECTED] wrote: But (a) is not a lifted version of a, whereas (a,b) is a lifted version of the a b product. So it's not consistent, and thereby wrong. Well, we can't represent the unlifted

[Haskell-cafe] maybe a goal and challenge for the Haskell in terms of scientific computing

2008-10-03 Thread Galchin, Vasili
Hello, Here is a site I discovered a while back for another language ... I guess in the back of my mind this more where I was going vis-a-vis scientific computing http://www.enthought.com/ Kind regards, Vasili ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Haskell-cafe-cafe? Was: Re: Health effects

2008-10-03 Thread Brandon S. Allbery KF8NH
On 2008 Oct 3, at 21:01, Christopher Lane Hinson wrote: What /is/ it with haskell-cafe lately? Do we need a haskell-blah mailing list? I would subscribe to that. Hell, I would post to it probably more than I post to haskell-cafe. But I'd also divert it to a separate mailbox for when I

[Haskell-cafe] Model-driven development (was: Haskell participting in big science like CERN Hadrian...)

2008-10-03 Thread ajb
G'day all. Quoting Don Stewart [EMAIL PROTECTED]: How about EDSLs for producing high assurance controllers, and other robust devices they might need. I imagine the LHC has a good need for verified software components... On a related topic, I'm curious if anyone apart from me has been

Re: [Haskell-cafe] maybe a goal and challenge for the Haskell in terms of scientific computing

2008-10-03 Thread Jeff Wheeler
On Oct 3, 2008, at 8:26 PM, Galchin, Vasili wrote: Here is a site I discovered a while back for another language ... I guess in the back of my mind this more where I was going vis-a-vis scientific computing http://www.enthought.com/ I interned at Enthought over this last summer;

[Haskell-cafe] New System.Process

2008-10-03 Thread john lask
Something that has irked me in the past about System.Process is the inability to obtain an OS system handle from the haskell Process handle. Such a facility would greatly enhance the interoperabity of c and haskell libraries. Provision is made (although not standardised) to obtain OS specific

[Haskell-cafe] Simplifying a IsFunction type class using type equality constraints

2008-10-03 Thread Corey O'Connor
I recently had a need to use the IsFunction typeclass described by Oleg here: http://okmij.org/ftp/Haskell/isFunction.lhs and am wondering if the use of the TypeCast class can be correctly replaced by a type equality constraint. The IsFunction and TypeCast classes were defined as: data HTrue

Re: [Haskell-cafe] Announcing OneTuple-0.1.0

2008-10-03 Thread Luke Palmer
On Fri, Oct 3, 2008 at 7:26 PM, Tim Chevalier [EMAIL PROTECTED] wrote: On Fri, Oct 3, 2008 at 2:29 PM, Jason Dusek [EMAIL PROTECTED] wrote: Lennart Augustsson [EMAIL PROTECTED] wrote: But (a) is not a lifted version of a, whereas (a,b) is a lifted version of the a b product. So it's not

Re: [Haskell-cafe] Announcing OneTuple-0.1.0

2008-10-03 Thread Tim Chevalier
On Fri, Oct 3, 2008 at 7:24 PM, Luke Palmer [EMAIL PROTECTED] wrote: Well, unboxed tuples are not really lifted nor unlifed, since you can't even pass one to a function. It's true that unboxed tuples are not first-class. But what I mean by unlifted is that the type (# Int, Int #), when

Re: [Haskell-cafe] Announcing OneTuple-0.1.0

2008-10-03 Thread Luke Palmer
On Fri, Oct 3, 2008 at 8:32 PM, Tim Chevalier [EMAIL PROTECTED] wrote: On Fri, Oct 3, 2008 at 7:24 PM, Luke Palmer [EMAIL PROTECTED] wrote: Well, unboxed tuples are not really lifted nor unlifed, since you can't even pass one to a function. It's true that unboxed tuples are not first-class.

Re: [Haskell-cafe] maybe a goal and challenge for the Haskell in terms of scientific computing

2008-10-03 Thread Galchin, Vasili
Let me recuse myself What is the nature of the open source license? Vasili On Fri, Oct 3, 2008 at 8:39 PM, Jeff Wheeler [EMAIL PROTECTED] wrote: On Oct 3, 2008, at 8:26 PM, Galchin, Vasili wrote: Here is a site I discovered a while back for another language ... I guess in the