[Haskell-cafe] Newbie vs. laziness

2007-03-20 Thread Alex Queiroz
ot;SELECT id FROM " ++ (dtn dummy) ++ " ORDER BY " ++ (dof dummy) ids <- liftM (map fromSql . concat ) $! quickQuery con query [] print ids return $ IntMap.fromList $ zip ids [0..] print makes the ids list strict and all is well. How is the correct way to use

Re: [Haskell-cafe] Read Instance for UArray won't port to linux

2007-03-14 Thread Alex Queiroz
Hallo, On 3/14/07, Simon Peyton-Jones <[EMAIL PROTECTED]> wrote: Ah, a fine idea. I'll do that anyway; maybe others will have even better ideas, but that's a good start Ah! So now I knows what it means. I've also been beaten by this error message a couple of days a

Re: [Haskell-cafe] Re: HDBC Windows binaries with SQLite 3 support

2007-03-06 Thread Alex Queiroz
ux.org download site will go away. The links to the API docs from the wiki do not work. Cheers, -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] LGPL libraries

2007-03-05 Thread Alex Queiroz
to send an object file with the application to allow relinking. I was just curious about the LGPL because GHC always links everything statically. Thanks for the thorough answer! Cheers, -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing lis

[Haskell-cafe] LGPL libraries

2007-03-05 Thread Alex Queiroz
Hallo, Gtk2Hs and HDBC are both LGPL licensed, but aren't they always static linked? Is there a way to use them in closed-source programs? Cheers, -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Re: HDBC Windows binaries with SQLite 3 support

2007-03-05 Thread Alex Queiroz
Hallo, On 3/5/07, ArtemGr <[EMAIL PROTECTED]> wrote: My instructions (i made it for myself! provided "as is"): Worked after some tweaks for my system. It was actually much easier than I thought. Thanks very much! -- -alex http://ww

[Haskell-cafe] HDBC Windows binaries with SQLite 3 support

2007-03-05 Thread Alex Queiroz
Hallo list, I guess the subject line says it all. Can anybody help me? -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] haskell-art mailing list

2007-02-23 Thread alex
t me know if you have any problems subscribing. If it proves a popular and/or useful list, perhaps it could be moved to haskell.org in the future. alex ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: Re[2]: [Haskell-cafe] Connected!

2007-02-01 Thread Alex Queiroz
eah, I share your pain. :-) -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] getting started with hsc (supercollider)

2007-01-27 Thread alex
uld anyone have some illustrative example code, and perhaps a couple of tips for how to get things working well in emacs? Once I get up to speed I would hope to contribute a beginner's guide back. Perhaps I should be addressing this email just to Rohan, but thought others might be able

Re: [Haskell-cafe] basic field questions

2007-01-24 Thread Alex Queiroz
hair Props data Table = Table Props Do you mean: data Chair = Chair Properties data Table = Table Properties ? -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] basic field questions

2007-01-24 Thread Alex Queiroz
Also, could someone tell me why this doesn't compile in GHC: data Test = A {a::Int} | B {a::Int, b::Int} data Test2 = C {c::A} 'A' is not a type, is a constructor for type 'Test'. -- -alex http://www.ventonegro.org/ ___ Ha

Re: [Haskell-cafe] HaskellForge?

2007-01-10 Thread Alex Jacobson
community acceptance for a particular version of each of these. -Alex- Michael T. Richter wrote: On Mon, 2007-08-01 at 18:19 +0100, Sven Panne wrote: > For example, if I want to install Rails (ruby web-app framework), I just > type: > gem install rails > It's pretty slic

Re: [Haskell-cafe] Beta Gtk2Hs Getting Started

2007-01-09 Thread Alex Queiroz
Hallo, On 1/8/07, Hans van Thiel <[EMAIL PROTECTED]> wrote: Thanks, I didn't know that. What other widget libraries are supported at this time? Only GTK+. :-) -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list H

Re: [Haskell-cafe] Beta Gtk2Hs Getting Started

2007-01-08 Thread Alex Queiroz
: Glade does not belong to GTK+, neither does libglade, which are independent projects. -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] SYB and/or HList for XML, deserialization and collections

2006-12-28 Thread Alex Jacobson
of application semantics. At the implementation level, it forces the generation of standard accessor names e.g. withFoo for every foo, rather than supporting a general syntax for access or update. -Alex- Bulat Ziganshin wrote: Hello S., Wednesday, December 27, 2006, 2:24:00 AM, you wrote: Hav

Re: [Haskell-cafe] Building the community

2006-12-14 Thread Alex Queiroz
I know the feeling. :-) -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Aim Of Haskell

2006-12-13 Thread Alex Queiroz
dd, but what features they can remove. So I'd say it's perfectly possible to have an academia-backed language useful for the "real world". Cheers, -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@h

Re: [Haskell-cafe] Re: Large data structures

2006-12-12 Thread Alex Queiroz
Hallo, On 12/12/06, Benjamin Franksen <[EMAIL PROTECTED]> wrote: Alex Queiroz wrote: > On 12/11/06, Stefan O'Rear <[EMAIL PROTECTED]> wrote: >> No. Haskell's lists are linked lists, enlarge creates a single new link >> without modifying (and copying) the or

Re: [Haskell-cafe] Large data structures

2006-12-12 Thread Alex Queiroz
theses/okasaki.pdf Thanks for the info and the link, looks interesting. Cheers, -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Large data structures

2006-12-11 Thread Alex Queiroz
iour with my own code? Cheers, -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Large data structures

2006-12-11 Thread Alex Queiroz
large mesh without using obscene amounts of memory? Making an analogy: enlarge :: a -> [a] -> [a] enlarge c cs = c : cs enlarge 15 [1..10] Will this copy the whole list to make a new one with an element more? Cheers, -- -alex http://www.ventonegro.org/ _

Re: [Haskell-cafe] Re: The Future of MissingH

2006-11-27 Thread Alex Queiroz
ion. Cheers, -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: best Linux for GHC?

2006-11-13 Thread Alex Queiroz
had GHC features and bugfixes in place - the Debian version has got rather out of date at times with respect to stuff we needed. No OpenGL neither Gtk2hs in Debian Sid yet. :-( -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-

Re: [Haskell-cafe] Re: Livecoding music in Haskell

2006-11-08 Thread alex
er than produce inaccurate output. To me part of the enjoyment of an instrument is what happens when you go beyond its normal limits. alex ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Livecoding music in Haskell

2006-11-08 Thread alex
ks also to those pointing me at Haskore on #haskell, so far it looks a lot like my existing representation of music, only much better. alex ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Livecoding music in Haskell

2006-11-07 Thread alex
st have to put it in a timestamped bundle though. I hope that's useful, if not let me know more about your timing problems, maybe I can still help. alex ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Livecoding music in Haskell

2006-11-06 Thread alex
On Tue, 2006-11-07 at 01:22 +1100, Donald Bruce Stewart wrote: > Alex McLean has kindly put up a screencast of him creating > *music via live coding in Haskell* ! > http://doc.gold.ac.uk/~ma503am/alex/haskellmusic Thanks Don! I originally did this screencast a while ago for a

Re: [Haskell-cafe] Is Haskell a 5GL?

2006-09-25 Thread Alex Queiroz
Hallo, On 9/25/06, Ch. A. Herrmann <[EMAIL PROTECTED]> wrote: Hi, Henning Thielemann wrote: > assembly language (Assembler ist deutsch :-) for mysterious reasons it entered the English world. 'Assembly' is a language. 'Assembler' is a program. -- -a

Re: [Haskell-cafe] Re: Haskell web forum

2006-09-21 Thread Alex Queiroz
orum" has nearly lost it's "General" forum to spammers. Maybe the experts know better engines, better ways to set up a forum, or better ways to administer them after they're up, but it is a concern. I only hope this mailing list will continue. I can't stand th

Re: [Haskell-cafe] Re: does the compiler optimize repeated calls?

2006-09-06 Thread Alex Queiroz
common subexpression; only one place to change when you need to change the call. So there is no benefits from the "functions have no side-effects" property, performance-wise. Pity. -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing l

Re: [Haskell-cafe] does the compiler optimize repeated calls?

2006-09-06 Thread Alex Queiroz
shot: Since functions have no side effects, the compiler executes the function only once. -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] need help please [HOpenGL]

2006-04-22 Thread enache alex
hello ; I am writing to ask you a thing ; I am writing a little game on Haskell's HOpenGL ; the game isn't much , but I want to make look a little better ; and for that I want to use bitmaps (or textures) ; I don't know very much about this subject ; I've tried to use de bitmap function from Graphi

[Haskell-cafe] Implementing and indexing 2 dimen arrays

2004-03-25 Thread Alex Gontcharov
I am writing a function, It's my first Haskell program in output function I will be working on [[3,4],[1,2,3,2],[3,9,9,4],[8,3,3,4] type structures I'd like to know how to index a particular element at run-time as I don't know on which element of which sublist I am at the moment in pullHelper funct

[Haskell-cafe] Implementing C program in Haskell

2004-03-24 Thread Alex Gontcharov
Hi, Is anyone bored and wants to rewrite a small C program in Haskell?:) http://users.tpg.com.au/galutva/jap.c I am new to Haskell and it'd take me sometime to do it all myself. Thanks ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskel

[Haskell-cafe] Where's the error in this snippet of code?

2004-03-24 Thread Alex Gontcharov
Ignore the layout I can't find the error, running it gives parse error during compile on pStack, it is not very descriptive and I don't what is wrong. --Stack for the digits for numbers, a modulo b digStack :: Integer->Integer->[Integer] digStack a b | a == 0 = [] | otherwise =

[Haskell-cafe] loop in C , recursion in haskell

2004-03-24 Thread Alex Gontcharov
Hi, I am new to haskell and would look to write a function equivalent to the following loop in C int value = 50; int part_stack[4]; int *part_ptr = part_stack; for (; value; value /= 1) *part_ptr++ = value % 1; Thanks ___ Haskell-Cafe

[Haskell-cafe] Converting String

2004-01-26 Thread Alex Gontcharov
Hi, I'm fairly new to Haskell, I'd like to know how to convert a list of Strings of type IO [String] to Int. I used map read p, where p is a list of IO Strings ["1", "2"] Thanks ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mail

Bracketless branch if, sugar to taste...

2003-02-13 Thread Alex Ferguson
(or perhaps, in need of sound dental advice). Example: ifM (return (1==1)) `then_` print (2+3) `else_` print (3+4) Of course, the type errors are going to start looking more and more mysterious if you get 'em in the wrong place... Cheers, Alex. infix 4 `then_` infix 5 `e

RE: Newbie question on "statefullness"

2002-08-11 Thread Alex Peake
I am trying to implement a long-lived "accumulator" Alex > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of mike castleman > Sent: Sunday, August 11, 2002 6:50 PM > To: [EMAIL PROTECTED] > Subject: Re: Newbi

Newbie question on "statefullness"

2002-08-11 Thread Alex Peake
I am new to Haskell. I want to do something very simple (I thought) but got lost in the world of Monads. I want to implement something like the C idea of: n += i So how does one doe this in Haskell? Thanks, Alex ___ Haskell-Cafe mailing list

TclHaskell probs.

2000-09-21 Thread Alex Ferguson
Hi all. I've had a problem with cascade menus with TclHaskell under Solaris, running tcl and tk vs 8.0. In short, they don't (cascade, that is). Anyone else found this, and better yet, do they have a fix? The same code runs fine on Cygwintel... Cheers, Alex.

<    1   2   3