Re: [Haskell-cafe] problems installing Takusen-0.6

2007-07-29 Thread Salvatore Insalaco
2007/7/29, Rahul Kapoor [EMAIL PROTECTED]: I am having problems installing Takusen-0.6 (ghc 6.6.1 on FreeBSD) The configure and build works fine. running ./setup install fails with: Installing: /usr/local/lib/Takusen-0.6/ghc-6.6.1 /usr/local/bin Takusen-0.6... setup: Error: Could not find

[Haskell-cafe] Re: [Haskell] View patterns in GHC: Request?for?feedback

2007-07-29 Thread ChrisK
And the readability is destroyed because you cannot do any type inference in your head. If you see { Matrix m = ; Matrix x = m * y; ...; } Then you know very little about the possible types of y since can only conclude that: Matrix can be multiplied by one or more types 'sometype'

[Haskell-cafe] Text.XHtml Documentation

2007-07-29 Thread David F. Place
Hello: I was just looking into using Text.XHtml for a project. The Haddock documentation points to an introduction by Andy Gill, but the link is broken. Can anyone point me to the correct location of the introduction? Thanks. Cheers, David ___

Re: [Haskell-cafe] Using GADTs

2007-07-29 Thread Jim Apple
{-# OPTIONS -fglasgow-exts #-} module NNF where The way I would do this would be to encode as much of the value as I cared to in the constructors for concepts, rather than just encoding the top-level constructor. data Named data Equal a b data Negation a data Top data Concept t where

Re: [Haskell-cafe] Text.XHtml Documentation

2007-07-29 Thread Henk-Jan van Tuyl
You can often find old webpages at web.archive.org: http://web.archive.org/web/20070406145557/http://www.cse.ogi.edu/~andy/html/intro.htm Searching, with part of the text, revealed that you can also find this page at:

[Haskell-cafe] Strange behavior of executeFile

2007-07-29 Thread Krzysztof Kościuszkiewicz
Fellow Haskellers, I wrote a small script that intercepts arguments and exec's the pstops program. The intention was to center and scale pages in a document before processing it by psnup. So far so good, I've ended up with something like: runPstops :: [Flag] - IO () runPstops flags = do

Re: [Haskell-cafe] Strange behavior of executeFile

2007-07-29 Thread Bryan O'Sullivan
Krzysztof Kościuszkiewicz wrote: This works for files, but randomly fails when stdin is connected to a pipe (pstops complains that it can't seek input). GHC's file handles are backed by non-blocking file descriptors. The child process run by executeFile inherits the stdin, stdout and stderr

Re: [Haskell-cafe] Strange behavior of executeFile

2007-07-29 Thread Krzysztof Kościuszkiewicz
On Sun, Jul 29, 2007 at 10:34:10AM -0700, Bryan O'Sullivan wrote: GHC's file handles are backed by non-blocking file descriptors. The child process run by executeFile inherits the stdin, stdout and stderr file descriptors of your Haskell process, so they're unexpectedly (from its

Re: [Haskell-cafe] ANN: Finance.Quote.Yahoo 0.1 on hackage

2007-07-29 Thread Hugh Perkins
This is totally off-topic, but... how could I go about getting hold of the information on per-country exports and imports of specific types of things? (lets say for example, a thing could be: coffee ,but also a computer program, so not just physical commodities, but also services and somewhat

Re: [Haskell-cafe] Strange behavior of executeFile

2007-07-29 Thread Ian Lynagh
On Sun, Jul 29, 2007 at 10:34:10AM -0700, Bryan O'Sullivan wrote: Simon Marlow was going to look into this problem a few months ago, but I don't know if he's had a chance to. It's fixed in the HEAD: http://hackage.haskell.org/trac/ghc/ticket/724 Thanks Ian

Re: [Haskell-cafe] Using GADTs

2007-07-29 Thread Matthew Pocock
On Sunday 29 July 2007, Jim Apple wrote: The way I would do this would be to encode as much of the value as I cared to in the constructors for concepts, rather than just encoding the top-level constructor. data Named data Equal a b data Negation a data Top data Concept t where

[Haskell-cafe] Questions about threads

2007-07-29 Thread John Goerzen
Hi everyone, I have been confused by some things about threads for a long time. I'm hoping someone out there can help clear this up. I'll clean up and document on the wiki if we get conclusive answers. So it seems there are four scenarios for firing off threads: A) Threaded RTS, forkIO B)

[Haskell-cafe] Re: HDBC or HSQL

2007-07-29 Thread John Goerzen
On 2007-07-25, George Moschovitis [EMAIL PROTECTED] wrote: I am a Haskell newbie and I would like to hear your suggestions regarding a Database conectivity library: HSQL or HDBC ? which one is better / more actively supported? I am the author of HDBC, so take this for what you will. There

[Haskell-cafe] HDBC Laziness (was Re: HDBC or HSQL)

2007-07-29 Thread John Goerzen
On 2007-07-26, jeff p [EMAIL PROTECTED] wrote: to lazily retrieve query results. While this can be very convenient, it can also easily lead to very frustrating errors and/or resource leaks (just like any lazy IO operation); I eventually had to remove all trace of this function from my code

[Haskell-cafe] Re: HDBC or HSQL

2007-07-29 Thread John Goerzen
On 2007-07-25, david48 [EMAIL PROTECTED] wrote: On 7/25/07, George Moschovitis [EMAIL PROTECTED] wrote: I am a Haskell newbie and I would like to hear your suggestions regarding a Database conectivity library: HSQL or HDBC ? which one is better / more actively supported? HDBC Supports

Re: [Haskell-cafe] Questions about threads

2007-07-29 Thread Stefan O'Rear
On Sun, Jul 29, 2007 at 05:35:26PM -0500, John Goerzen wrote: Hi everyone, I have been confused by some things about threads for a long time. I'm hoping someone out there can help clear this up. I'll clean up and document on the wiki if we get conclusive answers. So it seems there are

Re: [Haskell-cafe] Questions about threads

2007-07-29 Thread Duncan Coutts
On Sun, 2007-07-29 at 17:35 -0500, John Goerzen wrote: Hi everyone, I have been confused by some things about threads for a long time. I'm hoping someone out there can help clear this up. I'll clean up and document on the wiki if we get conclusive answers. So it seems there are four

Re: [Haskell-cafe] HDBC Laziness (was Re: HDBC or HSQL)

2007-07-29 Thread jeff p
Hello, I have heard from a number of people that this behavior is not very newbie-friendly. I can see how that is true. I have an API revision coming anyway, so perhaps this is the time to referse the default laziness of HDBC calls (there would be a '-version of everything with laziness

Re: [Haskell-cafe] HDBC Laziness (was Re: HDBC or HSQL)

2007-07-29 Thread Donald Bruce Stewart
mutjida: Hello, I have heard from a number of people that this behavior is not very newbie-friendly. I can see how that is true. I have an API revision coming anyway, so perhaps this is the time to referse the default laziness of HDBC calls (there would be a '-version of everything