[Haskell-cafe] Haskell philosophy question

2009-05-17 Thread Vasili I. Galchin
Hello, I am confused between Haskell as delineated in the Haskell Report VS ghc pragmas which extend Haskell beyond the Haskell Report. I am sure I am not the first to ask. Caveat: on my part, I am not against innovation/extensions, but I don't like to see language bloat. This is not a

Re: [Haskell-cafe] Haskell philosophy question

2009-05-17 Thread Brandon S. Allbery KF8NH
On May 17, 2009, at 02:32 , Vasili I. Galchin wrote: I am confused between Haskell as delineated in the Haskell Report VS ghc pragmas which extend Haskell beyond the Haskell Report. I am sure I am not the first to ask. Caveat: on my part, I am not against innovation/extensions, but I

[Haskell-cafe] Cabal, Time GHC 6.10.2

2009-05-17 Thread Dominic Steinitz
I get d...@linux-6ofq:~/asn1 runghc Setup.hs configure Configuring PER-0.0.20... Setup.hs: At least the following dependencies are missing: time -any -any but I have time d...@linux-6ofq:~/asn1 ghc-pkg list | grep time old-locale-1.0.0.1, old-time-1.0.0.2, packedstring-0.1.0.1,

[Haskell-cafe] Can't install happs-tutorial because syb-with-class fails to install

2009-05-17 Thread Colin Paul Adams
Data/Generics/SYB/WithClass/Derive.hs:187:26: Couldn't match expected type `Pred' against inferred type `Type' Expected type: PredQ Inferred type: TypeQ In the first argument of `map', namely `dataCxt' In the first argument of `(++)', namely `map dataCxt dataCxtTypes'

Re: [Haskell-cafe] Cabal, Time GHC 6.10.2

2009-05-17 Thread Duncan Coutts
On Sun, 2009-05-17 at 09:17 +0100, Dominic Steinitz wrote: I get d...@linux-6ofq:~/asn1 runghc Setup.hs configure Configuring PER-0.0.20... Setup.hs: At least the following dependencies are missing: time -any -any but I have time d...@linux-6ofq:~/asn1 ghc-pkg list | grep time

Re: [Haskell-cafe] Linkage errors in scenegraph

2009-05-17 Thread Sven Panne
Am Sonntag, 17. Mai 2009 01:07:55 schrieb Gregory D. Weber: I'd like to get the scenegraph package (http://hackage.haskell.org/cgi-bin/hackage-scripts/package/scenegraph) to work, but am encountering linkage errors. [...] Also, I notice that in the cabal file for scenegraph, the list of

Re: [Haskell-cafe] Data.Binary and little endian encoding

2009-05-17 Thread Sven Panne
Am Freitag, 15. Mai 2009 06:37:22 schrieb Don Stewart: timd: On a related matter, I am using Data.Binary to serialise data from haskell for use from other languages. [...] [...] Yep, it's possible, just not portably so. Google for Data.Binary IEEE discussions. I think this topic pops up

Re: [Haskell-cafe] Can't install happs-tutorial because syb-with-class fails to install

2009-05-17 Thread Colin Paul Adams
False alarm. It compiles OK with ghc 6.10.3. The failure was with ghc 6.11.20090404. -- Colin Adams Preston Lancashire ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Data.Binary and little endian encoding

2009-05-17 Thread Don Stewart
Sven.Panne: Am Freitag, 15. Mai 2009 06:37:22 schrieb Don Stewart: timd: On a related matter, I am using Data.Binary to serialise data from haskell for use from other languages. [...] [...] Yep, it's possible, just not portably so. Google for Data.Binary IEEE discussions. I think

[Haskell-cafe] Re: Haskell philosophy question

2009-05-17 Thread Don Stewart
vigalchin: Hello, I am confused between Haskell as delineated in the Haskell Report VS ghc pragmas which extend Haskell beyond the Haskell Report. I am sure I am not the first to ask. Caveat: on my part, I am not against innovation/extensions, but I don't like to see language bloat.

[Haskell-cafe] Building a better dog house?

2009-05-17 Thread michael rice
I was just looking at my UML (Unified Modeling Language) User Guide and discovered this: The number of object-oriented methods increased from fewer than 10 to more than 50 during the period between 1989 and 1994. pg. xviii, Booch, Rumbaugh, Jacobson, 1999 Is there a modeling methodology

[Haskell-cafe] Re: [Haskell] [ANN] Safe Lazy IO in Haskell

2009-05-17 Thread Jason Dusek
From the documentation: LI could be a strict monad and a strict applicative functor. However it is not a lazy monad nor a lazy applicative functor as required Haskell. Hopefully it is a lazy (pointed) functor at least. I'd like to understand this better -- how is LI

[Haskell-cafe] Re: Haskell philosophy question

2009-05-17 Thread Jon Fairbairn
Vasili I. Galchin vigalc...@gmail.com writes: Hello, I am confused between Haskell as delineated in the Haskell Report VS ghc pragmas which extend Haskell beyond the Haskell Report. Pragmas are part of the report, and while I agree that using them for extensions is stretching the

[Haskell-cafe] ANN: TxtSushi 0.1

2009-05-17 Thread Keith Sheppard
Hello Haskell Cafe I have released the first version of TxtSushi which is a collection of command line utils (written in haskell of course) for processing tab-delimited and CSV files. It includes a util for doing SQL SELECTs on flat files. This is my first haskell project and feedback of all

Re: [Haskell-cafe] ANN: TxtSushi 0.1

2009-05-17 Thread Eugene Kirpichov
This is crazy cool! I will now use your project as an example of what one can do as his first project in Haskell; I think doing SQL on CSV files definitely counts as a huge success story! 2009/5/17 Keith Sheppard keiths...@gmail.com: Hello Haskell Cafe I have released the first version of

Re: [Haskell-cafe] ANN: TxtSushi 0.1

2009-05-17 Thread Jochem Berndsen
Keith Sheppard wrote: I have released the first version of TxtSushi which is a collection of command line utils (written in haskell of course) for processing tab-delimited and CSV files. It includes a util for doing SQL SELECTs on flat files. This is my first haskell project and feedback of

Re: [Haskell-cafe] ANN: TxtSushi 0.1

2009-05-17 Thread Eugene Kirpichov
By the way: As I see from the sources, your code uses external sort? But using String's much defeats the purpose of it, anyway, because their performance is so bad that if you feed your program a file that is larger than can be sorted in memory, sorting it externally using String's will anyway

Re: [Haskell-cafe] ANN: TxtSushi 0.1

2009-05-17 Thread Keith Sheppard
Thanks for the encouraging reply! By the way, I was part way through writing my own code for external sorting which I don't actually use yet except from some test executable (joincol.hs). I'm very glad to see that there is already a library that does this though, so in my next version I will dump

Re: [Haskell-cafe] ANN: TxtSushi 0.1

2009-05-17 Thread Keith Sheppard
Thanks! Good advice, I will do that. On Sun, May 17, 2009 at 11:49 AM, Jochem Berndsen joc...@functor.nl wrote: Keith Sheppard wrote: I have released the first version of TxtSushi which is a collection of command line utils (written in haskell of course) for processing tab-delimited and CSV

[Haskell-cafe] Free theorems for dependent types?

2009-05-17 Thread Eugene Kirpichov
Hello, Is there any research on applying free theorems / parametricity to type systems more complex than System F; namely, Fomega, or calculus of constructions and alike? This seems very promising to me for the following reason: Take the free theorem for 'sort::(a-a-Bool)-[a]-[a]'. The theorem

Re: [Haskell-cafe] Building a better dog house?

2009-05-17 Thread Paul Johnson
michael rice wrote: I was just looking at my UML (Unified Modeling Language) User Guide and discovered this: The number of object-oriented methods increased from fewer than 10 to more than 50 during the period between 1989 and 1994. pg. xviii, Booch, Rumbaugh, Jacobson, 1999 Is there a

Re: [Haskell-cafe] Free theorems for dependent types?

2009-05-17 Thread Robin Green
On Sun, 17 May 2009 23:10:12 +0400 Eugene Kirpichov ekirpic...@gmail.com wrote: Is there any research on applying free theorems / parametricity to type systems more complex than System F; namely, Fomega, or calculus of constructions and alike? Yes. I did some research into it as part of my

Re: [Haskell-cafe] Free theorems for dependent types?

2009-05-17 Thread Eugene Kirpichov
I'm glad that someone is doing research in that direction! Are your results so far applicable to create a free theorem for that example with sortBy? 2009/5/17 Robin Green gree...@greenrd.org: On Sun, 17 May 2009 23:10:12 +0400 Eugene Kirpichov ekirpic...@gmail.com wrote: Is there any research

Re: [Haskell-cafe] Building a better dog house?

2009-05-17 Thread michael rice
Hi Paul,  I've been away from software design for more than a decade and have fallen behind on what's currently being used. I wasn't even aware of RUP. Thanks for the info. Michael --- On Sun, 5/17/09, Paul Johnson p...@cogito.org.uk wrote: From: Paul Johnson p...@cogito.org.uk Subject: Re:

[Haskell-cafe] ANNOUNCE: mathlink-2.0.0.3

2009-05-17 Thread Tracy Wadleigh
Already posted to the Haskell list but dons suggested I post to the cafe, as well... All: mathlink is a library for writing Mathematica packages in Haskell. One simply writes some functions of type: (MLGet a, MLPut b) = a - IO b and provides a package specification in a simple DSL that mimics

Re: [Haskell-cafe] Free theorems for dependent types?

2009-05-17 Thread Joe Fredette
This word has piqued my interest, I've hear it tossed around the community quite a bit, but never fully understood what it meant. What exactly is a 'free theorem'? Eugene Kirpichov wrote: Hello, Is there any research on applying free theorems / parametricity to type systems more complex than

Re: [Haskell-cafe] Free theorems for dependent types?

2009-05-17 Thread Ryan Ingram
Free theorem's are theorems about functions that rely only on parametricity. For example, consider any function f with the type forall a. a - a From its type, I can tell you directly that this theorem holds: forall g :: A - B, x :: A, f (g x) = g (f x) (Note that the f on the left

[Haskell-cafe] tips on using monads

2009-05-17 Thread Michael P Mossey
I've got one of those algorithms which threatens to march off the right edge (in the words of Goerzen et al). I need something like a State or Maybe monad, but this is inside the IO monad. So I presume I need StateT or MaybeT. However, I'm still (slowly) learning about monads from first

Re: [Haskell-cafe] ANNOUNCE: mathlink-2.0.0.3

2009-05-17 Thread Eugene Kirpichov
Hi, I'm a Haskeller that uses Mathematica on a regular basis; it's one of my favourite tools. So - thanks for your work, I'll use it whenever applicable. However, during compilation I get an error that ml.h is not found, even after I added Mathematica's include dirs to Include-Dirs. Since that