Re: [Haskell-cafe] Re: Why binding to existing widget toolkits doesn't make any sense

2009-01-29 Thread Evan Laforge
> Conal> As Meister Eckhart said, "Only the hand that erases can write the > Conal> true thing." > > Nicely said... > > I'm sure you're not the only one desiring to write GUI in "genuinely > functional" toolkit, but, being realistic and considering how many people > are working on bindings for thos

Re: [Haskell-cafe] Re: Why binding to existing widget toolkits doesn't make any sense

2009-01-29 Thread Conal Elliott
2009/1/29 Gour > > "Conal" == Conal Elliott writes: > Hi Conal, > > Conal> Hi Achim, I came to the same conclusion: I want to sweep aside > Conal> these OO, imperative toolkits, and replace them with something > Conal> "genuinely functional", which for me means having a precise & > Conal> si

[Haskell-cafe] Re: Why binding to existing widget toolkits doesn't make any sense

2009-01-29 Thread Gour
> "Conal" == Conal Elliott writes: Hi Conal, Conal> Hi Achim, I came to the same conclusion: I want to sweep aside Conal> these OO, imperative toolkits, and replace them with something Conal> "genuinely functional", which for me means having a precise & Conal> simple compositional (denotation

Re: [Haskell-cafe] Why binding to existing widget toolkits doesn't make any sense

2009-01-29 Thread Conal Elliott
Hi Achim, I came to the same conclusion: I want to sweep aside these OO, imperative toolkits, and replace them with something "genuinely functional", which for me means having a precise & simple compositional (denotational) semantics. Something meaningful, formally tractable, and powefully composi

[Haskell-cafe] Re: databases in Haskell & type-safety

2009-01-29 Thread guenni68
Hi Alistair, yes, please, pretty please do! I really am desparate, I'm running into so much trouble because I have to export to MS-Access and I'm a little out of luck with HDBC. HDBC works like a charm unless you have to use MS-Access. Günther On 29 Jan., 22:24, Alistair Bayley wrote: > > I

Re: [Haskell-cafe] How outdated is Hugs?

2009-01-29 Thread Ross Paterson
On Thu, Jan 29, 2009 at 10:21:42PM +, Malcolm Wallace wrote: > On 29 Jan 2009, at 20:49, Ross Paterson wrote: >> Hugs uses cpphs, but it has to build a dozen packages (including >> Cabal) before cpphs is available. Once it is, they're built again. > > That strikes me as odd. The cpphs imple

Re: [Haskell-cafe] Re: Re: A ghc-6.10.1 bug or a feature?

2009-01-29 Thread Duncan Coutts
On Thu, 2009-01-29 at 17:37 +0100, Juraj Hercek wrote: > Duncan Coutts wrote: > > On Wed, 2009-01-28 at 16:56 +0100, Juraj Hercek wrote: > > > >> Prelude> a <- readFile "/sys/devices/system/cpu/online" > >> Prelude> length a `seq` a > >> "^CInterrupted. > >> > > > > http://hackage.haskell.o

Re: [Haskell-cafe] How outdated is Hugs?

2009-01-29 Thread Malcolm Wallace
On 29 Jan 2009, at 20:49, Ross Paterson wrote: Hugs uses cpphs, but it has to build a dozen packages (including Cabal) before cpphs is available. Once it is, they're built again. That strikes me as odd. The cpphs implementation deliberately has minimal dependencies - Haskell'98 libraries

Re: [Haskell-cafe] Re: databases in Haskell & type-safety

2009-01-29 Thread Alistair Bayley
> I recently got an email back from Alstair Bayley who is one of the > Takusen authors, and they said they are preparing a GHC 6.10 release > (I was *not* the only person to submit a patch for ghc 6.10 building) > but it may take a little while. You might want to get in contact with > Alstair and a

Re: [Haskell-cafe] How outdated is Hugs?

2009-01-29 Thread Duncan Coutts
On Thu, 2009-01-29 at 20:49 +, Ross Paterson wrote: > > If you can get the search path right (ie to not look in the current dir) > > then I expect it would also be possible to bootstrap using a > > pre-existing Cabal library for hugs. > > Unfortunately that won't work: runhugs always adds the

Re: [Haskell-cafe] How outdated is Hugs?

2009-01-29 Thread Bryan O'Sullivan
On Wed, Jan 28, 2009 at 3:42 PM, Duncan Coutts wrote: > The way I've tested it recently is to build the Setup.hs with ghc and > use that to install Cabal for hugs. From then on one can use runhugs to > run other Setup scripts. > That's good to know, thanks. __

Re: [Haskell-cafe] haddock-2.3.0 error: file name does not match module name

2009-01-29 Thread David Waern
2009/1/29 Alistair Bayley : > 2009/1/29 Matthijs Kooijman : >>> I assume that it's procesing file Database.Enumerator.lhs when it >>> emits this, but I'm puzzled because the module name in >>> Database.Enumerator.lhs is certainly Database.Enumerator, and not >>> Main. >> Any chance the module state

Re: [Haskell-cafe] How outdated is Hugs?

2009-01-29 Thread Ross Paterson
On Wed, Jan 28, 2009 at 11:42:39PM +, Duncan Coutts wrote: > I'm not sure how it was ever supposed to work, that is bootstrapping > Cabal directly using runhugs on the Setup.hs script in the Cabal dir. > Cabal has always had some cpp in it and (as far as I know) hugs does not > have a -cpp flag

Re: [Haskell-cafe] Re: databases in Haskell & type-safety

2009-01-29 Thread Austin Seipp
Excerpts from GŸuenther Schmidt's message of Thu Jan 29 07:42:51 -0600 2009: > Hi Austin, > > could you post the patch please? > > So far there is no updated version of takusen that builds with ghc > 6.10 > > Günther Hi Gunther, I recently got an email back from Alstair Bayley who is one of th

[Haskell-cafe] The future of purely functional user interfaces?

2009-01-29 Thread Andrzej Jaworski
Yes, it is something unhealthy to seat on a bunch of far reaching ideas and still use artifact that even Microsoft tries to shake off (outsourcing their Office XML Ribbons). But as recent roar about monoids have shown - those who are Haskell most productive programmers are also most unlikely to

RE: [Haskell-cafe] Current research on overlapping/closed type families?

2009-01-29 Thread Simon Peyton-Jones
| Would this then also eventually work? | | data Zero = Zero | data Succ a = Succ a | | type family IsFunction f | | type instances |IsFunction (a -> b) = Succ (IsFunction b) |IsFunction c= Zero It's delicate. Consider f :: a -> IsFunction a f x = Zero h =

[Haskell-cafe] Re: Re: A ghc-6.10.1 bug or a feature?

2009-01-29 Thread Juraj Hercek
Duncan Coutts wrote: On Wed, 2009-01-28 at 16:56 +0100, Juraj Hercek wrote: Prelude> a <- readFile "/sys/devices/system/cpu/online" Prelude> length a `seq` a "^CInterrupted. http://hackage.haskell.org/trac/ghc/ticket/2971 Files in /proc and /sys are not select()able which messes up gh

Re: [Haskell-cafe] Re: Haskell on ARM (was Re: ANN: Topkata)

2009-01-29 Thread Dan Mead
does the haskell on llvm compiler support the ghc extentions? On Wed, Jan 28, 2009 at 7:27 PM, Anatoly Yakovenko wrote: > ghc llvm port would enable arm support as well. i know there were > some issues with llvm when this was discusses a couple of years ago. > has anyone checked if that's the ca

Re: [Haskell-cafe] haddock-2.3.0 error: file name does not match module name

2009-01-29 Thread Alistair Bayley
2009/1/29 Matthijs Kooijman : >> I assume that it's procesing file Database.Enumerator.lhs when it >> emits this, but I'm puzzled because the module name in >> Database.Enumerator.lhs is certainly Database.Enumerator, and not >> Main. > Any chance the module statement in the file is wrong? I think

Re: [Haskell-cafe] WYSIWYG literate programming

2009-01-29 Thread Ilmari Vacklin
2009/1/27 Massimiliano Gubinelli : > Thanks, I know LyX. Of course this is mostly personal taste but I think > TeXmacs as a technically superior piece of software (even if it does not > seems so at first look) and moreover the idea is also to have interactive > sessions and I'm not sure LyX allows

Re: [Haskell-cafe] haddock-2.3.0 error: file name does not match module name

2009-01-29 Thread Matthijs Kooijman
> I assume that it's procesing file Database.Enumerator.lhs when it > emits this, but I'm puzzled because the module name in > Database.Enumerator.lhs is certainly Database.Enumerator, and not > Main. Any chance the module statement in the file is wrong? I think I remember seeing this error once wh

[Haskell-cafe] haddock-2.3.0 error: file name does not match module name

2009-01-29 Thread Alistair Bayley
I'm getting an error when I run setup haddock-2.3.0 on the Takusen src: haddock.exe: File name does not match module name: Saw: `Main' Expected: `Database.Enumerator' I assume that it's procesing file Database.Enumerator.lhs when it emits this, but I'm puzzled because the module name in Database.

[Haskell-cafe] Re: databases in Haskell & type-safety

2009-01-29 Thread guenni68
Hi Austin, could you post the patch please? So far there is no updated version of takusen that builds with ghc 6.10 Günther On 3 Jan., 11:25, Austin Seipp wrote: > Excerpts from Gour's message of Sat Jan 03 03:48:44 -0600 2009: > > > > > > > Hi! > > > I'd like to use sqlite3 as application sto

Re: [Haskell-cafe] Re: C-like Haskell

2009-01-29 Thread John Lato
On Thu, Jan 29, 2009 at 11:30 AM, Duncan Coutts wrote: > On Thu, 2009-01-29 at 10:35 +, John Lato wrote: >> > On Wed, 2009-01-28 at 20:11 -0500, sam lee wrote: >> >> Did you print it? I'm using same code with ghc --make -O2 and it >> >> takes forever to finish. >> > >> > Yes, you can see in t

[Haskell-cafe] ANN: logfloat 0.10, 0.11

2009-01-29 Thread wren ng thornton
-- logfloat 0.10, 0.11 This package provides a type for storing numbers in the log-domain, primarily useful for preventing underflow when multiplying many probabilities as in HMMs and other probabilistic m

[Haskell-cafe] clean's gui toolkit

2009-01-29 Thread Martin DeMello
I've been wondering - Clean ships with a fairly capable looking GUI toolkit [http://clean.cs.ru.nl/About_Clean/Standard_I_O_Lib/standard_i_o_lib.html] - has anyone used it? How does it compare to the available Haskell options? martin ___ Haskell-Cafe ma

[Haskell-cafe] The future of purely functional user interfaces? (was "Why binding to existing widget toolkits doesn't make any sense")

2009-01-29 Thread Peter Verswyvelen
Haskell desperately needs something like Windows Presentation Foundation or http://www.piccolo2d.org... (so no GUIs but ZUIs :) but then purely functional. I'm pretty sure when a good framework is made, the community would contribute all kinds of widgets. IMO currently no Haskell framework has mad

Re: [Haskell-cafe] Re: C-like Haskell

2009-01-29 Thread Duncan Coutts
On Thu, 2009-01-29 at 10:35 +, John Lato wrote: > > On Wed, 2009-01-28 at 20:11 -0500, sam lee wrote: > >> Did you print it? I'm using same code with ghc --make -O2 and it > >> takes forever to finish. > > > > Yes, you can see in the output that it prints the same answer in each > > case. I wa

Re: Re[Haskell-cafe] cursive referencing

2009-01-29 Thread Eugene Kirpichov
Thanks, that clarifies things a lot; I must improve my laziness-fu! (to Belka: Also, lazy matching may be performed as fix (\(~(aa,bb)) -> ...) - the tilde does the trick) 2009/1/29 Ryan Ingram : > On Thu, Jan 29, 2009 at 12:44 AM, Eugene Kirpichov > wrote: >> With the Y combinator, the co

[Haskell-cafe] Re: C-like Haskell

2009-01-29 Thread John Lato
> On Wed, 2009-01-28 at 20:11 -0500, sam lee wrote: >> Did you print it? I'm using same code with ghc --make -O2 and it >> takes forever to finish. > > Yes, you can see in the output that it prints the same answer in each > case. I was using r = 10^9 as you suggested. I wouldn't call these answer

Re: [Haskell-cafe] Dependencies conflict

2009-01-29 Thread Martijn van Steenbergen
Thanks for the help and explanation. :-) Unregistering process-1.0.1.1 (+ those packages that depended on it...) fixed it. Thanks again, Martijn. Martijn van Steenbergen wrote: $ cabal install category-extras Resolving dependencies... cabal: dependencies conflict: ghc-6.10.1 requires proce

Re: Re[Haskell-cafe] cursive referencing

2009-01-29 Thread Ryan Ingram
On Thu, Jan 29, 2009 at 12:44 AM, Eugene Kirpichov wrote: > With the Y combinator, the code becomes as follows: > > f = \somedata1 somedata2 -> fst $ fix (\(aa,bb) -> (AA somedata1 bb, > BB somedata2 aa)) > > I tried to prove to myself that the structure really turns out cyclic, > but games with r

Re: [Haskell-cafe] C-like Haskell

2009-01-29 Thread Lennart Augustsson
I had a quick look at the code for loop :: Int64 -> Int64 -> Int64 loop i r = if i == 0 then r else loop (i-1) (r+1) It's quite bad. It's full of C calls. It would be much better to do what gcc does and treat Int64 as a primitive type, and just insert C calls for the tricky operations, like di

Re: Re[Haskell-cafe] cursive referencing

2009-01-29 Thread Eugene Kirpichov
Пожалуйста :) It's difficult to do this in lambda because it isn't expressible in simply (or even polymorphically) typed lambda calculus, since it requires the Y (fix) combinator, which introduces non-terminating computations, whereas simply- and polymorphically-typed lambda calcules are strongly

Re: Re[Haskell-cafe] cursive referencing

2009-01-29 Thread Belka
>Yes. >f somedata1 somedata2 = aa > where aa = AA somedata1 bb >bb = BB somedata2 aa Spasibo, Yevgeny! Originally I was thinking theoretically about a single plain lambda-expression, like (\ somedata1 somedata2 -> (\ aa bb -> aa (bb aa)) (\ b -> AA somedata1 b)

Re: [Haskell-cafe] ANN: incremental-sat-solver

2009-01-29 Thread Sebastian Fischer
Unlike 'sat' and 'sat-micro-hs' it is a library, and unlike 'libsat' it provides an interface for incremental solving. Funsat is also a library. By saying 'libsat' I actually meant 'funsat' ;) I have considered using it instead of writing 'incremental-sat-solver'. But after looking at yo