Re: [Haskell-cafe] Why are new releases of libraries required for every GHC release?

2006-11-22 Thread Duncan Coutts
On Wed, 2006-11-22 at 09:12 +, DavidA wrote: Some recent comments suggested that every time there is a new GHC release, there needs to be a new wxHaskell release (or insert name of other library here) to work with it. This seems to be true even for minor upgrades, like 6.4.1 - 6.4.2.

RE: [Haskell-cafe] what GUI library should i select?

2006-11-14 Thread Duncan Coutts
On Tue, 2006-11-14 at 10:40 +, Simon Peyton-Jones wrote: I wonder whether it'd be possible to make the gtk2hs stuff emit warnings if you make calls from two different threads? Then an application would complain constructively rather than becoming unstable. I have three plans: Plan 1:

Re: [Haskell-cafe] what GUI library should i select?

2006-11-14 Thread Duncan Coutts
On Wed, 2006-11-15 at 01:29 +, Neil Mitchell wrote: The funny thing is that we can actually use Haskell threads with Gtk2Hs perfectly well with the single threaded rts (we currently use a polling scheme to to cooperative scheduling between gtk+ and ghc rts but there are some

Re: Re[2]: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Duncan Coutts
On Mon, 2006-11-13 at 15:41 +0300, Bulat Ziganshin wrote: Hello Duncan, Monday, November 13, 2006, 3:36:32 AM, you wrote: afaik, there are just two good enough libs - wxHaskell and GtkHs. can in brief, i see the following main differences: - wxHaskell is easier to understand and to

Re: Re[4]: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Duncan Coutts
On Mon, 2006-11-13 at 16:48 +0300, Bulat Ziganshin wrote: Hello Duncan, Monday, November 13, 2006, 4:10:03 PM, you wrote: on the download page only GHC 6.4.1 support mentioned. is 6.4.2 and 6.6 supported on windows? The last official release for Windows supports GHC 6.2.2 and 6.4.1. I

Re: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Duncan Coutts
On Mon, 2006-11-13 at 18:00 +, Tim Docker wrote: afaik, there are just two good enough libs - wxHaskell and GtkHs. can anyone point (or write) detailed comparison of their features? One point in wxHaskell's favour is that it supports Mac OS X directly. At present, to the best of my

Re: Re[6]: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Duncan Coutts
On Mon, 2006-11-13 at 17:10 +0300, Bulat Ziganshin wrote: The one thing you should be aware of is that Windows + Threading + Gtk2Hs + Gtk + GHC = Pain. why? are you tried to call Gtk2Hs from only one thread? I think so, yes. Or there are bizare -threaded restrictions. Only Duncan

Re: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Duncan Coutts
for someone to help with maintaining Gtk2Hs on OSX (and someone for windows too). So if you're interested or know anyone who is interested then do get in touch. Duncan On 13 Nov 2006, at 19:03, Duncan Coutts wrote: One point in wxHaskell's favour is that it supports Mac OS X directly

Re: [Haskell-cafe] ByteString FFI

2006-11-12 Thread Duncan Coutts
On Sun, 2006-11-12 at 10:49 -0800, Donn Cave wrote: How do people like to set up their foreign I/O functions to return ByteStrings? I was a little stumped over this yesterday evening, while trying to write ` recv :: Socket - Int - Int - ByteString ' Doc says `Byte vectors are encoded as

Re: [Haskell-cafe] what GUI library should i select?

2006-11-12 Thread Duncan Coutts
On Mon, 2006-11-13 at 02:50 +0300, Bulat Ziganshin wrote: Hello haskell-cafe, afaik, there are just two good enough libs - wxHaskell and GtkHs. can anyone point (or write) detailed comparison of their features? i plan to write large GUI program in Haskell and want to select best one. the

Re: [Haskell-cafe] GHCi 6.6 tab-completion of source file paths not working.

2006-11-12 Thread Duncan Coutts
On Mon, 2006-11-13 at 12:02 +1300, Daniel McAllansmith wrote: Hi. I've just installed GHC 6.6 on an amd64 running a gentoo linux distribution. With GHCi from 6.4.2 I could run ghci then do Prelude :l Foo/Bar.hs by hitting tab after Foo to complete the path to Bar.hs This no longer

Re: [Haskell-cafe] Segmentation fault with realdine library

2006-10-23 Thread Duncan Coutts
On Mon, 2006-10-23 at 20:18 -0200, Maurí­cio wrote: Hi, This small program says Segmentation fault: module Main (Main.main) where import Data.Char import System.Time import System.Console.Readline main :: IO () main = do readKey return () I don't understand

Re: [Haskell-cafe] Fwd: [GHC] #939: Possible bug building wxhaskell

2006-10-14 Thread Duncan Coutts
On Sat, 2006-10-14 at 20:32 +0900, shelarcy wrote: Hi Jason, Jun Mukai aka. jmuk already tried and successed to build wxhaskell on GHC 6.6. Here is his install log. http://sequence.complete.org/node/214 And I made patch for ghc 6.6 from it. Attached solves a few problem ... but you

Re: [Haskell-cafe] Gtk2Hs and Glade Tutorial

2006-10-13 Thread Duncan Coutts
On Fri, 2006-10-13 at 15:18 +0200, Hans van Thiel wrote: Hello Duncan, Thanks for your reply, and here's the pdf. Thanks. One of the things to be improved, which I note myself, is something on how to do it on the Windows platform. It's much the same of course, but yes that would be nice.

Re: [Haskell-cafe] Gtk2Hs and Glade Tutorial

2006-10-12 Thread Duncan Coutts
Hia Hans, That's great that you're interested in doing/improving Gtk2Hs tutorial material. I think actually this is one of the weakest parts of Gtk2Hs at the moment - the lack of a decent basic intro tutorial. We've often talked about starting one, and we had various ideas floating around, but

Re: [Haskell-cafe] beginner's problem about lists

2006-10-11 Thread Duncan Coutts
On Wed, 2006-10-11 at 11:40 +0100, Malcolm Wallace wrote: ihope [EMAIL PROTECTED] wrote: It's possible to make both infinite list and finite list datatypes: data Inf a = InfCons a (Inf a) data Fin a = FinCons a !(Fin a) | FinNil At least, I think the Fin type there has to be

Re: [Haskell-cafe] ghc 6.2.2 seems to ignore -package when there's a -prof option

2006-10-11 Thread Duncan Coutts
On Wed, 2006-10-11 at 16:01 -0400, Seth Gordon wrote: I have a program using HSQL that I'm trying to profile. When I do ghc program.hs -package hsql -o program it compiles fine, but when I do ghc -prof -auto-all program.hs -package hsql -o program I get error messages saying failed

Re: [Haskell-cafe] Haskell performance (again)!

2006-10-08 Thread Duncan Coutts
On Sun, 2006-10-08 at 15:25 -0700, Jason Dagit wrote: Another good idea when you have a pretty version which is easy to verify for correctness and an ugly version that is harder to verify is to use QuickCheck or SmallCheck and define a property that says both versions are equal for all

Re: [Haskell-cafe] how to create new repository on darcs.haskell.org?

2006-10-04 Thread Duncan Coutts
On Wed, 2006-10-04 at 18:23 +0200, Henning Thielemann wrote: On Wed, 4 Oct 2006, Bulat Ziganshin wrote: Hello haskell-cafe, i want to make my library available via darcs repository on darcs.haskell.org. how i can arrange it? if it is required, i already have user account on

Re: [Haskell-cafe] Haskell.org down

2006-09-23 Thread Duncan Coutts
On Sat, 2006-09-23 at 09:58 -0400, Paul Hudak wrote: Thanks Don. I alerted our IT staff this morning, and they seem to have things working again, although here is their final response: The web server had over 150 client connections which exceeded its limit. I restarted the web

Re: [Haskell-cafe] System threads?

2006-09-20 Thread Duncan Coutts
On Tue, 2006-09-19 at 19:45 -0700, Lyle Kopnicky wrote: Hi folks, I'm working on a project for which the solution is highly parallelizable. I've been writing it so far for GHC as a single-threaded app. I'd like to be able to split the job into multiple pieces, and spawn different system

Re: [Haskell-cafe] How to use clipboard in Gtk2Hs

2006-09-16 Thread Duncan Coutts
On Sat, 2006-09-16 at 18:32 +0900, Yu, Jae-Myoung wrote: I'm making a text editor with Gtk2Hs, and I want to implement copy paste with TextView. I read the api document but I can't find how to use the Gtk.Clipboard object. Without context menu basically included in the TextView widget, How

Re: [Haskell-cafe] Monad laws

2006-09-08 Thread Duncan Coutts
On Fri, 2006-09-08 at 01:43 -0400, Albert Lai wrote: Deokhwan Kim [EMAIL PROTECTED] writes: What is the practical meaning of monad laws? 1. (return x) = f == f x 2. m = return == m 3. (m = f) = g == m (\x - f x = g) I offer to re-write the laws in do-notation. (Please view

Re: Re[2]: [Haskell-cafe] Rewriting a Python application to Haskell

2006-09-02 Thread Duncan Coutts
that currently we can't fully follow through on the promise. There are some tricky problems. Duncan Coutts, gtk2hs author, writes the same and proposed solution - use dedicated thread to execute all graphics commands and send these commands to the thread using Chan. it's just several lines of code: I

Re: [Haskell-cafe] getContents and lazy evaluation

2006-09-01 Thread Duncan Coutts
On Fri, 2006-09-01 at 16:28 -0400, Robert Dockins wrote: On Friday 01 September 2006 15:19, Tamas K Papp wrote: Hi, I am newbie, reading the Gentle Introduction. Chapter 7 (Input/Output) says Pragmatically, it may seem that getContents must immediately read an entire file or

Re: [Haskell-cafe] getContents and lazy evaluation

2006-09-01 Thread Duncan Coutts
On Fri, 2006-09-01 at 17:36 -0400, Robert Dockins wrote: Perhaps I should be more clear. When I said advanced above I meant any use whereby you treat a file as random access, read/write storage, or do any kind of directory manipulation (including deleting and or renaming files). Lazy

[Haskell-cafe] Re: map and fmap

2006-08-15 Thread Duncan Coutts
On Tue, 2006-08-15 at 12:38 +0200, John Hughes wrote: One thing I've observed repeatedly is that many students in later years, who learned functional programming early, have a strong impression that functional languages are only suitable for toy programs. Of course, that's because in their

Re: [Haskell-cafe] One thought: Num to 0 as ? to list?

2006-08-13 Thread Duncan Coutts
On Sun, 2006-08-13 at 20:36 +0200, Marc Weber wrote: Is there somethinig corresponding to Num concering lists? I mean there is + - /.. defined. + - are not type specific (Int, Double) neither is : [1,2] notation to Elements.. But what about different implementatins of lists? (linked

Re: [Haskell-cafe] cabal specify a tested version, ghci target?

2006-08-12 Thread Duncan Coutts
On Sat, 2006-08-12 at 03:52 +0200, Marc Weber wrote: 1.) I know I can use Build-Depends: lib == version, lib2 version, lib3 = version and so on. Do you think it would be useful to introducue some notation to indicate a tested with ?

Re: [Haskell-cafe] Why Exotic Languages Are Not Mainstream

2006-08-11 Thread Duncan Coutts
On Fri, 2006-08-11 at 14:43 +0200, Johan Tibell wrote: Haskell was mentioned in an article called Why Exotic Languages Are Not Mainstream on the blog defmacro.org the other day and I thought maybe someone would be interested (i.e. is procrastinating at work and need an excuse to do something

Re: Re[2]: [Haskell-cafe] The difficulty of designing a sequence class

2006-08-01 Thread Duncan Coutts
On Tue, 2006-08-01 at 14:37 +0400, Bulat Ziganshin wrote: Hello Brian, Tuesday, August 1, 2006, 4:23:53 AM, you wrote: That's a tough call to make. Changing the kind of Sequence to * from * - * means losing the Functor, Monad, and MonadPlus superclasses and all the various maps and

Re: [Haskell-cafe] What is the state if Unicode in Haskell implementations?

2006-07-31 Thread Duncan Coutts
On Mon, 2006-07-31 at 13:56 +0200, Olof Bjarnason wrote: Hi there! I'm trying to user Haskell as a code-generating language, specifically generating C# code files. The wish list is 1) reading UTF-8 coded text files into unicode-enabled Strings, lets call them UString The ordinary Haskell

Re: [Haskell-cafe] Trouble compiling wxhaskell

2006-07-31 Thread Duncan Coutts
On Mon, 2006-07-31 at 19:11 -0400, David F. Place wrote: Hi: I'm having trouble compiling wxhaskell 0.9.4 under both ghc 6.4.2 and ghc 6.5. Does anyone know where I should direct my queries? Assuming you're using wxHaskell on linux with wxGTK then the usual problem with compiling

Re: [Haskell-cafe] Re: Is id strict?

2006-07-30 Thread Duncan Coutts
On Sun, 2006-07-30 at 10:56 +0100, Jón Fairbairn wrote: David House [EMAIL PROTECTED] writes: Hi all. I've seen two definitions of a 'strict function', which I'm trying to unite in my mind: 1) f is strict iff f _|_ = _|_. 2) f is strict iff it forces evaluation of its arguments.

Re: [Haskell-cafe] Cabal in ghc 6.4.2

2006-07-30 Thread Duncan Coutts
On Sun, 2006-07-30 at 15:01 +0100, allan wrote: however with version 6.4.2 I get the following error: haskellprint$ ./Setup.hs build Preprocessing executables for haskellprint-0.1... Building haskellprint-0.1... Chasing modules from: Main.hs Could not find module

Re: [Haskell-cafe] Re: Is id strict?

2006-07-30 Thread Duncan Coutts
On Sun, 2006-07-30 at 13:22 +0100, Jón Fairbairn wrote: Duncan Coutts [EMAIL PROTECTED] writes: On Sun, 2006-07-30 at 10:56 +0100, Jón Fairbairn wrote: David House [EMAIL PROTECTED] writes: 1) f is strict iff f _|_ = _|_. 2) f is strict iff it forces evaluation of its arguments

Re: [Haskell-cafe] RE: ANN: System.FilePath 0.9

2006-07-28 Thread Duncan Coutts
On Thu, 2006-07-27 at 11:07 -0700, Andrew Pimlott wrote: On Wed, Jul 26, 2006 at 04:02:31PM -0700, Andrew Pimlott wrote: I admit I don't know enough to say how the lpt1 issue should be handled. Is there any Win32 call I can make that will help me avoid accidentally opening these magic

Re: [Haskell-cafe] StablePtr's and castStablePtrToPtr

2006-07-28 Thread Duncan Coutts
On Tue, 2006-07-25 at 22:16 -0400, DeeJay-G615 wrote: I have a query which is asked out of interest's sake... I'm essentially looking for an affirmation of what I think I already understand (or some info if I'm deluded ;)). To put this in context... I have some C code...

Re: [Haskell-cafe] RE: ANN: System.FilePath 0.9

2006-07-27 Thread Duncan Coutts
On Thu, 2006-07-27 at 11:07 -0700, Andrew Pimlott wrote: On Wed, Jul 26, 2006 at 04:02:31PM -0700, Andrew Pimlott wrote: I admit I don't know enough to say how the lpt1 issue should be handled. Is there any Win32 call I can make that will help me avoid accidentally opening these magic

Re: [Haskell-cafe] RE: ANN: System.FilePath 0.9

2006-07-26 Thread Duncan Coutts
On Wed, 2006-07-26 at 15:29 +0200, Udo Stenzel wrote: My criticism is that your properties are all specified in terms of string manipulation. Exactly. I believe, a FilePath should be an algebraic datatype. Most operations on that don't have to be specified, because they are simple and

Re: [Haskell-cafe] RE: ANN: System.FilePath 0.9

2006-07-26 Thread Duncan Coutts
On Wed, 2006-07-26 at 19:41 +0200, Udo Stenzel wrote: Duncan Coutts wrote: On Wed, 2006-07-26 at 15:29 +0200, Udo Stenzel wrote: Exactly. I believe, a FilePath should be an algebraic datatype. We've had this discussion before. The main problem is that all the current IO functions

Re: [Haskell-cafe] RE: ANN: System.FilePath 0.9

2006-07-26 Thread Duncan Coutts
On Wed, 2006-07-26 at 11:32 -0700, Andrew Pimlott wrote: On Wed, Jul 26, 2006 at 03:36:13AM +0100, Neil Mitchell wrote: Its a rats nest to do it properly, but some very basic idea of does this path have things which there is no way could possibly be in a file - for example c:\|file is a

Re: [Haskell-cafe] doubt on gui

2006-07-20 Thread Duncan Coutts
On Thu, 2006-07-20 at 18:09 +0300, Alvaro Galan wrote: Hi, im almost new in haskell world, but im trying to do a simple graphical interface for a small program, i developed the program under winhugs, and now i want to develop the gui also with it, but all the libraries and kits that i download

Re: [Haskell-cafe] Unix gurus, help me please

2006-07-17 Thread Duncan Coutts
On Mon, 2006-07-17 at 18:04 +0400, Bulat Ziganshin wrote: Hello gurus :) i got message about problems compiling Streams 0.2.1 library on Unix systems: - I include file io.h, but this particular system has sys/io.h Are you sure you need sys/io.h? What are you using from it? As far as I can

Re: Re[2]: [Haskell-cafe] Unix gurus, help me please

2006-07-17 Thread Duncan Coutts
On Mon, 2006-07-17 at 19:59 +0400, Bulat Ziganshin wrote: Hello Duncan, Monday, July 17, 2006, 6:18:49 PM, you wrote: - I include file io.h, but this particular system has sys/io.h Are you sure you need sys/io.h? What are you using from it? As far as I can see it doesn't define

Re: [Haskell-cafe] Compiling ghc for using STM

2006-07-17 Thread Duncan Coutts
On Mon, 2006-07-17 at 18:29 +0100, Asfand Yar Qazi wrote: On 7/17/06, Bulat Ziganshin [EMAIL PROTECTED] wrote: if you want to really use 2 processors, you should use ghc 6.5, which is still in beta stage. ghc 6.4 executes all the Haskell code on one processor (to be exact, at each moment

[Haskell-cafe] Re: [Gtk2hs-devel] announce: (preliminary) dbus haskell bindings

2006-07-17 Thread Duncan Coutts
That's great Evan! I had actually been hoping that we'd get a student to do D-Bus bindings for a Google Summer of Code project. Sadly we didn't get quite enough places assigned for a D-Bus project to make it into our list. I would be happy to include D-Bus bindings with Gtk2Hs as it's generally

Re: [Haskell-cafe] Windows Haskell GUI

2006-07-06 Thread Duncan Coutts
On Wed, 2006-07-05 at 17:51 -0700, Jason Dagit wrote: On 7/5/06, Duncan Coutts [EMAIL PROTECTED] wrote: On Wed, 2006-07-05 at 16:06 -0700, Jason Dagit wrote: I can't help with gtk2hs as I haven't tried it yet, but I hear the dev community is much more alive and very helpful. My main

Re: [Haskell-cafe] Re: [haskell] ANNOUNCE: HNOP 0.1

2006-07-05 Thread Duncan Coutts
On Sat, 2006-07-01 at 16:36 +0100, Ian Lynagh wrote: [resending as the original seems to have been silently eaten; attachements are at http://urchin.earth.li/~ian/splitting/ ] On Fri, Jun 30, 2006 at 03:45:57PM -0700, mvanier wrote: I'm at a loss here. Somehow, the SplitObjs option

Re: [Haskell-cafe] Strictness in do block

2006-07-05 Thread Duncan Coutts
On Wed, 2006-07-05 at 12:08 +0100, Neil Mitchell wrote: Hi, What I want to know is the generic way to force an entire String (or other list, perhaps from hGetContents) to be evaluated (read into RAM, I guess) so the underlying file can be closed and do it right now. What I have done

Re: [Haskell-cafe] Windows Haskell GUI

2006-07-05 Thread Duncan Coutts
On Wed, 2006-07-05 at 16:06 -0700, Jason Dagit wrote: I can't help with gtk2hs as I haven't tried it yet, but I hear the dev community is much more alive and very helpful. My main concerns with gtk2hs were 1) I need a native look 'n feel This is a common misconception. Gtk+ uses the windows

Re: [Haskell-cafe] cabal-get and HXT?

2006-06-20 Thread Duncan Coutts
On Mon, 2006-06-19 at 17:33 -0700, Greg Fitzgerald wrote: I'd like to use a tool to automatically install Haskell XML Toolkit and its dependencies. What are my options? How's cabal-get coming? That, or use an OS which packages it. Actually, on Gentoo we've only got an old version of HXT

Re: [Haskell-cafe] Computing lazy and strict list operations at the same time

2006-06-19 Thread Duncan Coutts
On Mon, 2006-06-19 at 15:24 +, C Rodrigues wrote: Here's a puzzle I haven't been able to solve. Is it possible to write the initlast function? There are functions init and last that take constant stack space and traverse the list at most once. You can think of traversing the list as

Re: [Haskell-cafe] Computing lazy and strict list operations at the same time

2006-06-19 Thread Duncan Coutts
On Mon, 2006-06-19 at 17:03 +0100, Jon Fairbairn wrote: On 2006-06-19 at 15:24- C Rodrigues wrote: Here's a puzzle I haven't been able to solve. Is it possible to write the initlast function? There are functions init and last that take constant stack space and traverse the list

Re: [Haskell-cafe] do we have something like isDefined or isNull in Haskell?

2006-06-15 Thread Duncan Coutts
On Thu, 2006-06-15 at 12:43 +0100, Vladimir Portnykh wrote: Suppose there is a data definition in Haskell: data MyType = MyType { date :: Double, weight :: Double, height:: Double } deriving (Eq, Ord, Show) Is it possible to

Re: [Haskell-cafe] Learning C after Haskell

2006-06-12 Thread Duncan Coutts
On Mon, 2006-06-12 at 14:48 -0700, Jared Updike wrote: Thanks, Minh. So are things like recursion and memory sharing typically out the window? Recursion works in C, but every function call pushes stack, so recursive depth is limited by RAM (compare to tail call optimization in many

Re: [Haskell-cafe] Parsec and binary files

2006-06-08 Thread Duncan Coutts
On Thu, 2006-06-08 at 11:49 -0300, Atila Romero wrote: Im trying to use parsec to split a file, using the null character as a separator. Works fine with very small files but fails if they are a little bit larger. I guess parsec is trying to parse everthing first and print the results last.

Re: [Haskell-cafe] Profiling Gtk2HS applications

2006-06-07 Thread Duncan Coutts
On Wed, 2006-06-07 at 23:58 +, Dmitry V'yal wrote: Hello. How can one profile a program which uses gtk2hs? I get this: At the moment the Gtk2Hs build system does not support building a profiling version. This should change when the move to using Cabal, however that may be some time. So

Re: Re[4]: [Haskell-cafe] Re: [Haskell] installing streams library

2006-05-28 Thread Duncan Coutts
On Sun, 2006-05-28 at 14:44 +0400, Bulat Ziganshin wrote: Hello Jeremy, Sunday, May 28, 2006, 1:29:02 AM, you wrote: Two alternative ideas are: (1) accurately pre-calculate the size of the serialized structure and allocate the correct amount of memory from the start it's good

Re: Re[6]: [Haskell-cafe] Re: [Haskell] installing streams library

2006-05-28 Thread Duncan Coutts
On Sun, 2006-05-28 at 20:40 +0400, Bulat Ziganshin wrote: Hello Duncan, Sunday, May 28, 2006, 3:05:53 PM, you wrote: createMemBuf does exactly this :) One of the areas where we found that Data.ByteString.Lazy was performing better than the ordinary Data.ByteString is cases like this

Re: [Haskell-cafe] UTF-8 Strings and GHC

2006-05-25 Thread Duncan Coutts
On Thu, 2006-05-25 at 15:02 +, Dmitry V'yal wrote: Hi, all. I'm writing a GUI app using Haskell and Gtk2HS. All goes well besides one thing. I need to display some messages in russian and I can't figure out, how to handle that. Gtk uses UTF-8 internally, so i have to pass UTF-8

Re: [Haskell-cafe] shared local definitions

2006-05-18 Thread Duncan Coutts
On Thu, 2006-05-18 at 11:00 +0200, Alberto Ruiz wrote: When I compute (using ghc -O) things like map g1 [1 .. 1000] the common q is evaluated only once, which is very nice. But the problem is that in some strange cases this kind of optimization is not applied, and the same q is

Re: [Haskell-cafe] The values of infinite lists

2006-05-10 Thread Duncan Coutts
On Wed, 2006-05-10 at 23:29 +0900, Deokhwan Kim wrote: Bjorn Lisper wrote: precisely the same as _|_. Only certain kinds of nontermination can be modeled by _|_ in a non-strict language. What kinds of nontermination are modeled by _|_ in Haskell? let f = f in f 3 length [0..] Duncan

Re: [Haskell-cafe] database access recommendation

2006-04-27 Thread Duncan Coutts
On Thu, 2006-04-27 at 10:45 -0500, Brock Peabody wrote: I'm teaching myself Haskell, and was wondering if anyone could recommend a library for accessing databases, PostgreSQL in particular. I looked at http://www.haskell.org/haskellwiki/Libraries_and_tools, and HSQL looked promising, but I

RE: [Haskell-cafe] database access recommendation

2006-04-27 Thread Duncan Coutts
On Thu, 2006-04-27 at 11:50 -0500, Brock Peabody wrote: From: Duncan Coutts [mailto:[EMAIL PROTECTED] There is also HDBC which is nearing a 1.0 release and in my experience is easier to install. (I package both HSQL HDBC for Gentoo) Thanks, I'll check that out. For some reason I saw

Re: [Haskell-cafe] Google SoC

2006-04-21 Thread Duncan Coutts
On Fri, 2006-04-21 at 13:50 +0200, Pepe Iborra wrote: http://code.google.com/soc/ This is not news. SoC was presented a few days ago, and by now there are a lot of projects available, yet none(?) Haskell related :( This is a plea for Haskell FOSS project managers to apply as mentor

Re: [Haskell-cafe] GUI-Woes

2006-03-14 Thread Duncan Coutts
On Tue, 2006-03-14 at 09:45 +0300, Dmitry V'yal wrote: Christophe Poucet wrote: I have to concur with Duncan. I started using Gtk2Hs for a small project and literally within a couple hours I had a good understanding upon which to build a nice gui as well as the gui itself. I haven't

Re: [Haskell-cafe] GUI-Woes

2006-03-14 Thread Duncan Coutts
On Tue, 2006-03-14 at 17:15 +0100, Daniel Fischer wrote: Okay, I've got myself gtk2hs now (and remebered what shied me away the first time: click on dowload opens Pandora's cookie box). Seems to work, although linking takes ages and the binaries are awe-inspiringly huge. Now two questions

Re: [Haskell-cafe] GUI-Woes

2006-03-13 Thread Duncan Coutts
On Mon, 2006-03-13 at 09:58 +0100, Daniel Fischer wrote: Hello All, how would I get myself a working (and easy to use) GUI-library? There are two main GUI libraries at the moment: Gtk2Hs and wxHaskell. http://haskell.org/gtk2hs/ http://wxhaskell.sourceforge.net/ Both will work with current

Re: [Haskell-cafe] library sort

2006-03-08 Thread Duncan Coutts
On Wed, 2006-03-08 at 11:25 +0100, John Hughes wrote: When I surveyed Haskell users, I asked respondents to name the most important tools and libraries they use. (Caveat: respondents saw the list of tools and libraries already named, and could include these just by selecting them, so tools

Re: [Haskell-cafe] Re: Layout rule (was Re: PrefixMap: code review request)

2006-03-01 Thread Duncan Coutts
On Wed, 2006-03-01 at 22:58 +, Ben Rudiak-Gould wrote: Duncan Coutts wrote: hIDE and Visual Haskell use the ghc lexer and get near-instantaneous syntax highlighting. Hmm... I just installed Visual Haskell 0.1, and when I type in the editor, CPU usage rises to about 70% and there's

Re: [Haskell-cafe] graphics on mac os x

2006-02-24 Thread Duncan Coutts
On Thu, 2006-02-23 at 18:19 -0800, jeff p wrote: Hello, I am running ghc 6.4.1 on mac os X (10.4.5). Can anyone give me some pointers for getting graphics functionality? I have tried wxhaskell, but it gives me the error HelloWorld.hs:4:0: Failed to load interface for

Re: [Haskell-cafe] EclipseFP (Haskell IDE) 0.9.1 released

2006-02-01 Thread Duncan Coutts
On Wed, 2006-02-01 at 13:21 +, Graham Klyne wrote: Thiago Arrais wrote: EclipseFP 0.9.1 has been released since last Friday. It is an open-source development environment for Haskell code. EclipseFP integrates GHC with an Haskell-aware code editor and also supports quick file

Re: [Haskell-cafe] graphics Windows Programming

2006-01-26 Thread Duncan Coutts
On Thu, 2006-01-26 at 14:25 +0100, Andrew U. Frank wrote: There are several graphics packages to select from... But which one is the easiest to work with for students for a ghci - windows environment. I sense that cairo / gtk2hs does not support ghci. At the moment we can make it work

Re: [Haskell-cafe] libtiff

2006-01-17 Thread Duncan Coutts
On Tue, 2006-01-17 at 13:42 -0600, Green Bryan - bgreen wrote: Does anyone know of libtiff having been wrapped for Haskell? If not, where could I find a good tutorial on wrapping a c library with functions that have variable argument parameters? The Haskell FFI does not support calling

Re: [Haskell-cafe] Where does memory go?

2006-01-08 Thread Duncan Coutts
On Sun, 2006-01-08 at 17:01 +, Joel Reymont wrote: I compiled a simple one-liner: main = print Blah. This is the GC report: 5,620 bytes allocated in the heap 0 bytes copied during GC 0 collections in generation 0 ( 0.00s) 0 collections in

Re: [Haskell-cafe] Opening the same file multiple times

2005-12-12 Thread Duncan Coutts
On Mon, 2005-12-12 at 07:43 +0200, Einar Karttunen wrote: Hello It seems that opening the same file multiple times (one writer and multiple readers) is not supported at least on *nix with GHC. I want to use one Handle to use append data till the end of the file while other Handles perform

Re: [Haskell-cafe] Opening the same file multiple times

2005-12-12 Thread Duncan Coutts
On Mon, 2005-12-12 at 09:52 -0800, Donn Cave wrote: Of course there's a risk that the authors of ghc may notice that we're doing this and come up with a way to thwart it, but it seems to me that between interfering with legitimate applications and not working reliably anyway, there'd be a

Re: [Haskell-cafe] Can't Haskell catch up with Clean's uniqueness typing?

2005-12-08 Thread Duncan Coutts
On Thu, 2005-12-08 at 11:29 -0800, Jeremy Shaw wrote: Why should inferring uniqueness be all that fragile? A uniqueness checker can be rather robust, as is demonstrated by the Clean one. Fragile could refer to the fact that a relatively small looking change to your code could have a

Re: [Haskell-cafe] preffered 'map'

2005-12-08 Thread Duncan Coutts
On Fri, 2005-12-09 at 00:24 +0200, raptor wrote: hi, I imported : import Data.Map as Map but now anywhere when I want ot use map it complains for name clashes, so I have to specifiy Prelude.map all the time. Is there a way to specify that i mean Prelude not Data 'map' (but not fqn) I

Re: [Haskell-cafe] Haskell GUI on top of Xlib?

2005-11-26 Thread Duncan Coutts
On Sat, 2005-11-26 at 00:17 -0500, Dimitry Golubovsky wrote: Do there exist Haskell graphics/UI toolkits implemented on top of the X11 library (Xlib) without any intermediate C/C++ libraries (i. e. not WxHaskell for example)? I have a very low level client-side interface to the X11

Re: [Haskell-cafe] getCPUTime ??

2005-11-21 Thread Duncan Coutts
On Mon, 2005-11-21 at 15:14 -0500, Michael Benfield wrote: I'm new to Haskell. I'm apparently misunderstanding something here. When I run this program: - module Main where import System.Posix import System.CPUTime printTime = getCPUTime = putStrLn . show main = printTime

Re: [Haskell-cafe] Re: [Haskell] Making Haskell more open

2005-11-14 Thread Duncan Coutts
On Mon, 2005-11-14 at 11:03 +0100, Wolfgang Jeltsch wrote: Am Sonntag, 13. November 2005 22:05 schrieb Gour: [...] The question is if HTML is sufficient. In addition, HTML is at some points not well thought-out. True, but considering the present situation, it is all what is

Re: [Haskell-cafe] Template Haskell and Types

2005-09-26 Thread Duncan Coutts
On Mon, 2005-09-26 at 10:36 +0200, Gracjan Polak wrote: Simon Peyton-Jones wrote: Hmm. Q is a monad, so I think fail :: Monad m = String - m a will do the job. 'recover' should catch the exception, and let you try something else. So I think I have bug report :) Haskell-cafe

Re: [Haskell-cafe] wxHaskell: getting a checkbox state

2005-09-14 Thread Duncan Coutts
On Wed, 2005-09-14 at 18:24 +0200, Joel Reymont wrote: On Sep 14, 2005, at 5:54 PM, Arthur Baars wrote: This means you can get and set the checked property for checkboxes. for example: c - get cbEdit checked set cbEdit [checked := not c ] Any particular reason to enclose the

Re: [Haskell-cafe] Floating point madness

2005-08-29 Thread Duncan Coutts
On Mon, 2005-08-29 at 16:59 -0400, Mark Goldman wrote: I have looked around the net, and in some reference books and I cannot find a function to convert a Float to a Double directly. Can there truly be no such animal in the Prelude/standard libs? In the Prelude there is realToFrac ::

Re: [Haskell-cafe] FFI and callbacks

2005-08-22 Thread Duncan Coutts
On Mon, 2005-08-22 at 15:45 +0200, Sebastian Sylvan wrote: I haven't found any issues with wxHaskell misbehaving when it's called from different threads, but I'd like to know for sure that it's actually honest-to-goodness thread safe. So does anyone know? Actually here's an even more direct

Re: [Haskell-cafe] FFI and callbacks

2005-08-22 Thread Duncan Coutts
On Mon, 2005-08-22 at 18:13 +0200, Sebastian Sylvan wrote: On 8/22/05, Duncan Coutts [EMAIL PROTECTED] wrote: On Mon, 2005-08-22 at 15:45 +0200, Sebastian Sylvan wrote: I haven't found any issues with wxHaskell misbehaving when it's called from different threads, but I'd like to know

Re: [Haskell-cafe] Re: FFI and callbacks

2005-07-25 Thread Duncan Coutts
On Mon, 2005-07-25 at 13:47 +, John Goerzen wrote: On 2005-07-25, Simon Marlow [EMAIL PROTECTED] wrote: On 23 July 2005 03:38, Duncan Coutts wrote: Thanks for describing the problem in detail, I understand it better now. I think it comes down to this conflict: - you want to take

Re: [Haskell-cafe] Re: FFI and callbacks

2005-07-25 Thread Duncan Coutts
On Mon, 2005-07-25 at 10:08 -0500, John Goerzen wrote: On Mon, Jul 25, 2005 at 04:05:15PM +0100, Duncan Coutts wrote: On Mon, 2005-07-25 at 13:47 +, John Goerzen wrote: - our bound threads design does not require the implementation to support lightweight threads, and hence

Re: [Haskell-cafe] building Ghc with msvc ?

2005-07-23 Thread Duncan Coutts
On Sat, 2005-07-23 at 22:49 +0200, Jan Scott wrote: Hi, Has anyone ever tried to build Ghc with Microsofts c compiler (msvc) ? GHC relies quite heavily on gcc. GHC's C code backend uses a number of GNU C extensions I believe. I think it would be a great deal of work to make it use msvc. And

Re: [Haskell-cafe] Updating the Haskell Standard

2005-07-22 Thread Duncan Coutts
On Fri, 2005-07-22 at 15:36 +0200, Sebastian Sylvan wrote: Haskell is beautiful, but it does have its warts. A Haskell 2.0 could incorporate some non-backwards-compatible changes which would make things a bit nicer. There are tons of useful extensions in GHC which should be included. From my

RE: [Haskell-cafe] FFI and callbacks

2005-07-22 Thread Duncan Coutts
On Wed, 2005-07-20 at 16:10 +0100, Simon Marlow wrote: On 20 July 2005 14:35, John Goerzen wrote: I'm looking at packaging an event-driven console widget set (CDK) for Haskell using FFI. I know that other event-driven widget sets have Haskell bindings, but I'm not quite sure how to make

Re: [Haskell-cafe] flushing trace debug output before getting other output

2005-07-17 Thread Duncan Coutts
On Sun, 2005-07-17 at 04:46 +, Terrence Brannon wrote: When I remove my various trace statements, I get what I want: *Main printPicture $ superimposeImage imgA imgB ...##... So the question is, how can I

Re: [Haskell-cafe] Compiling an extremely large Haskell file (in GHC)

2005-06-28 Thread Duncan Coutts
On Tue, 2005-06-28 at 12:11 +0300, Radu Grigore wrote: On 6/27/05, Arjun Guha [EMAIL PROTECTED] wrote: It's the all-pairs shortest paths data for a map of the Hyde Park area of Chicago (no real reason, really). I wonder: is there really no way to do Floyd-Warshall in Haskell? Indeed I

Re: [Haskell-cafe] Announce: Yet Another Tool to Generate FFI Bindings: hsffig

2005-06-28 Thread Duncan Coutts
On Sat, 2005-06-25 at 03:39 -0400, Dimitry Golubovsky wrote: I am pleased to announce the very first alpha release of the (yet another) FFI binding autogeneration tool. [...] http://www.golubovsky.org/repos/hsffig/ I will appreciate any feedback. You may be interested to know that there

Re: [Haskell-cafe] Compiling an extremely large Haskell file (in GHC)

2005-06-28 Thread Duncan Coutts
On Tue, 2005-06-28 at 20:13 -0400, Arjun Guha wrote: As a self-taught Haskell programmer of about a year, I'm really interested in seeing your colleague's code. I'd like to know what I did wrong. How about after two weeks? I think that's reasonable! I'm sure we'll publish our entry

Re: [Haskell-cafe] Space questions about intern and sets

2005-06-03 Thread Duncan Coutts
On Fri, 2005-06-03 at 10:53 +0200, Gracjan Polak wrote: As intern behaves like id and does not have any side effects, I thought its interface should be purely functional. But I do not see any way to do it :( I'll end up with a monad, probably. In related question: does anybody here have

Re: [Haskell-cafe] www.haskell.org

2005-05-19 Thread Duncan Coutts
On Wed, 2005-05-18 at 18:19 +0100, Colin Paul Adams wrote: I'm trying to download a darcs client, but I get: The connection was refused when trying to connect to www.haskell.org from Firefox on Linux. haskell.org was down for some time yesterday. It's back now and everything should be

Re: [Haskell-cafe] Re: Haskell vs OCaml

2005-05-05 Thread Duncan Coutts
On Wed, 2005-05-04 at 18:29 -0400, Jacques Carette wrote: There is also Template Haskell vs MetaOCaml. For the life of me, I still cannot fathom why Template Haskell is untyped, while MetaOCaml is fully typed. Which is the main reason I write meta-program in MetaOCaml and 'other' programs

<    7   8   9   10   11   12   13   >