[Haskell-cafe] Problem building hdbc-sqlite3 with ghc 6.8.2

2008-01-02 Thread manu
hello, has anybody managed to build hdbc-sqlite3 with ghc 6.8.2 ? I get the following error : Macintosh:HDBC-sqlite3-1.1.3.0 manu$ runhaskell Setup.lhs build Preprocessing library HDBC-sqlite3-1.1.3.0... ghc-6.8.2: unrecognised flags: -F/Users/manu/Library/Frameworks Usage: For basic

Re: [Haskell-cafe] Basic question concerning data constructors

2008-01-02 Thread ajb
G'day all. Quoting Yitzchak Gale [EMAIL PROTECTED]: Data types consist only of computable elements. Since there are only countably many computable functions, every data type has at most countably many elements. In particular, it is a set. I still say it isn't a set in the same way that a

[Haskell-cafe] Consensus about databases / serialization

2008-01-02 Thread Peter Verswyvelen
As I'm a selfmade man, I never really studied relational databases in detail. My intuition told me that the relational part was not really suitable for the 3D data, 2D images, animation curves, state machines, and other data I encountered in the videogame and animation business. I could always get

Re: [Haskell-cafe] Consensus about databases / serialization

2008-01-02 Thread Salvatore Insalaco
·regarding Haskell and databases, the page http://haskell.org/haskellwiki/Libraries_and_tools/Database_interfaces describes a few, but which are the ones that are stable and practical? Any user experiences? During my experiments I found Takusen (http://darcs.haskell.org/takusen/) and

Re: [Haskell-cafe] Knowledge

2008-01-02 Thread jlw501
Good point. By fold/unfold transformation you get the following: contains = flip elem [Eureka] = contains xs e = flip elem xs e [Expose data structures] = contains [] e = False contains (x:xs) e = flip elem (x:xs) e [Instantiate] = contains [] e = False contains (x:xs) e = elem e x:[] || flip

Re: [Haskell-cafe] Consensus about databases / serialization

2008-01-02 Thread Cristian Baboi
I recommend you read Extending the database relational model to capture more meaning by E.F. Codd. On Wed, 02 Jan 2008 13:50:46 +0200, Peter Verswyvelen [EMAIL PROTECTED] wrote: As I'm a selfmade man, I never really studied relational databases in detail. My intuition told me that the

Re: [Haskell-cafe] Basic question concerning data constructors

2008-01-02 Thread Benja Fallenstein
Hi Yitz, On Jan 2, 2008 10:34 AM, Yitzchak Gale [EMAIL PROTECTED] wrote: No, only countably many. By the type expression Integer - Integer we mean all Haskell functions mapping Integers to Integers. There are only countably many of those. ... But that was not the context in this thread. The

[Haskell-cafe] Re: Problem building hdbc-sqlite3 with ghc 6.8.2

2008-01-02 Thread Christian Maeder
manu wrote: hello, has anybody managed to build hdbc-sqlite3 with ghc 6.8.2 ? I get the following error : Macintosh:HDBC-sqlite3-1.1.3.0 manu$ runhaskell Setup.lhs build Preprocessing library HDBC-sqlite3-1.1.3.0... ghc-6.8.2: unrecognised flags: -F/Users/manu/Library/Frameworks

Re: [Haskell-cafe] Basic question concerning the category Hask (was: concerning data constructors)

2008-01-02 Thread Jonathan Cast
On 2 Jan 2008, at 5:49 AM, Yitzchak Gale wrote: Hi Andrew, Andrew Bromage wrote: I still say it isn't a set in the same way that a group isn't a set. Haskell data types have structure that is respected by Haskell homomorphisms. Sets don't. Ah, that's certainly true. But what is that

[Haskell-cafe] Re: Haskell performance

2008-01-02 Thread Simon Marlow
[EMAIL PROTECTED] wrote: G'day all. Quoting Jon Harrop [EMAIL PROTECTED]: I would recommend adding: 1. FFT. 2. Graph traversal, e.g. nth-nearest neighbor. I'd like to put in a request for Pseudoknot. Does anyone still have it? This is it, I think:

[Haskell-cafe] Escape Codes

2008-01-02 Thread H. Mayer
Hello, Some days ago I needed escape codes on Win32. I didn't find any library for that, so I wrote a simple one. I thought, perhaps someone else will have the same problem, so I put it on my website:http://0hc.net/?what=downloads_sup_AWin32Console I've tested it with the ghc 6.6.1, and

Re: [Haskell-cafe] Escape Codes

2008-01-02 Thread Neil Mitchell
Hi Some days ago I needed escape codes on Win32. I didn't find any library for that, so I wrote a simple one. I have a simple module which does them as part of Hoogle: http://www.cs.york.ac.uk/fp/darcs/hoogle/src/General/Type.hs - see TagStr, the type for defining text with basic formatting

[Haskell-cafe] Re: [16/16] SBM: Discussion and Conclusion

2008-01-02 Thread Simon Marlow
Peter Firefly Brodersen Lund wrote: Using top together with huge input files convinced me that -sstderr was untrustworthy so I developed the pause-at-end preloading hack. Paranoia paid off big time there. In what way did you find -sstderr untrustworthy? Perhaps it is because the memory in

Re: [Haskell-cafe] Consensus about databases / serialization

2008-01-02 Thread Steve Lihn
I have started documenting the Database Wikibook, in particular, about HDBC. It is still very rough at this time, but something is better than nothing :-) If you want to add more content, certainly welcome! http://en.wikibooks.org/wiki/Haskell/Database On 1/2/08, Jeff Polakow [EMAIL PROTECTED]

[Haskell-cafe] Hackage web page

2008-01-02 Thread Neil Mitchell
Hi, The hackage web page confuses me: http://hackage.haskell.org/packages/hackage.html As a user, when I go to that page, I would be seeking one of four pieces of information: 1) How to install a cabal package 2) How to create and upload a cabal package 3) What packages are on hackage 4)

Re: [Haskell-cafe] Newbie question: can laziness lead to space compression?

2008-01-02 Thread Malcolm Wallace
Brian Hurt [EMAIL PROTECTED] wrote: But I was wondering if it is possible that lazy evaluation could lead to space compression, especially under heavily persistant usage patterns? Note that the benefit isn't *big*- we're talking about 40 words of memory when the main data structure is

[Haskell-cafe] Re: Importing Data.Char speeds up ghc around 70%

2008-01-02 Thread Simon Marlow
Joost Behrends wrote: Neil Mitchell ndmitchell at gmail.com writes: If it can be reproduced on anyones machine, it is a bug. If you can bundle up two programs which don't read from stdin (i.e. no getLine calls) or the standard arguments (i.e. getArgs) which differ only by the Data.Char

[Haskell-cafe] Is there anyone out there who can translate C# generics into Haskell?

2008-01-02 Thread Nicholls, Mark
I'm trying to translate some standard C# constucts into Haskell... some of this seems easy Specifically 1) Interface IX { } 2) Interface IXA { } 3) Interface IXA Where A : IY { } 4) Interface IXA : IZ Where A : IY { } I can take a punt at the first 2but then it

[Haskell-cafe] Re: Hackage web page

2008-01-02 Thread Duncan Coutts
In message [EMAIL PROTECTED] Neil Mitchell [EMAIL PROTECTED] writes: Hi, The hackage web page confuses me: http://hackage.haskell.org/packages/hackage.html Hackage has now graduated from being a nice idea to being a critial user-focused thingy, which is great. Perhaps the website needs a

Re: [Haskell-cafe] Is there anyone out there who can translate C# generics into Haskell?

2008-01-02 Thread Ryan Ingram
Of course it depends what's inside the braces, and what you want to do with it, but I'd be inclined to do something like this: 1) data IX a = IX { constructor :: Int - a, ... } 2) data IX a b = IX { constructor :: Int - b, func :: a - b, ... } 3) data IX a b = IX { iy :: IY a, ... } 4) data IX a

Re: [Haskell-cafe] Hackage web page

2008-01-02 Thread Bulat Ziganshin
Hello Neil, Wednesday, January 2, 2008, 7:30:21 PM, you wrote: The hackage web page confuses me: http://hackage.haskell.org/packages/hackage.html btw, i very like idea of using wiki pages which allows all users to participate in development of docs. may be it will be better to wikify this

[Haskell-cafe] I am looking for the source code for STM implementation ...

2008-01-02 Thread Galchin Vasili
Hello, I found STM.c(lower layer), but cannot find the top layer code written Haskell.?? Vasya ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] I am looking for the source code for STM implementation ...

2008-01-02 Thread Ryan Ingram
http://www.haskell.org/ghc/docs/latest/html/libraries/base/src/GHC-Conc.html -- ryan On 1/2/08, Galchin Vasili [EMAIL PROTECTED] wrote: Hello, I found STM.c(lower layer), but cannot find the top layer code written Haskell.?? Vasya ___

Re: [Haskell-cafe] Is there anyone out there who can translate C# generics into Haskell?

2008-01-02 Thread Bulat Ziganshin
Hello Mark, Wednesday, January 2, 2008, 7:40:31 PM, you wrote: I'm trying to translate some standard C# constucts into Haskell... some it's meaningless. read http://haskell.org/haskellwiki/OOP_vs_type_classes and especially papers mentioned in the References -- Best regards, Bulat

FW: [Haskell-cafe] Is there anyone out there who can translate C# generics into Haskell?

2008-01-02 Thread Peter Verswyvelen
I'm also new to Haskell, but I'm a C++/C# veteran, so I'll give it a shot. C#'s interfaces look a bit like Haskell's type classes. Although not exactly the same, you could try something like this: -- C#: interface IX1 { String foo1(int); } class IX1 obj where foo1 :: Int - obj - String --

Re: [Haskell-cafe] Re: Web server continued

2008-01-02 Thread Mattias Bengtsson
On Mon, 2007-12-31 at 12:36 +, Joost Behrends wrote: And concerning SQL: I like the parts of the language - all capitalized - as landmarks in my code, even in modified forms like: SELECT number, customer FROM ++ currcols ++ Here i see from afar, what the code around this line

Re: [Haskell-cafe] Consensus about databases / serialization

2008-01-02 Thread Justin Bailey
I can speak to haskelldb a little, see below: On Jan 2, 2008 3:50 AM, Peter Verswyvelen [EMAIL PROTECTED] wrote: ·regarding Haskell and databases, the page http://haskell.org/haskellwiki/Libraries_and_tools/Database_interfaces describes a few, but which are the ones that are stable and

[Haskell-cafe] ANN: Dimensional 0.7.2

2008-01-02 Thread Bjorn Buckwalter
Dear all, I've released version 0.7.2 of the Dimensional library. The only change from version 0.7.1 is that the CGS module has been re-enabled. Unless you use the CGS module there is no need to upgrade from 0.7.1. Note that this version is incompatible with GHC 6.8.1 due to bug #1919

Re: [Haskell-cafe] Re: [16/16] SBM: Discussion and Conclusion

2008-01-02 Thread Don Stewart
simonmarhaskell: Peter Firefly Brodersen Lund wrote: Using top together with huge input files convinced me that -sstderr was untrustworthy so I developed the pause-at-end preloading hack. Paranoia paid off big time there. In what way did you find -sstderr untrustworthy? Perhaps it is