RE: [Haskell-cafe] cabal update doesn't work on Windows XP

2010-06-03 Thread Bayley, Alistair
Whenever I do cabal update, the response is Unsuccessful HTTP code 403. That looks like the hackage server isn't responding, but other software tools (browsers, etc) on the computer can download the hackage database; the only program that can't get it is cabal. Do you use an http proxy?

RE: [Haskell-cafe] London HUG domain expired

2010-04-26 Thread Bayley, Alistair
From: sefer@gmail.com [mailto:sefer@gmail.com] On Behalf Of Yitzchak Gale On Fri, Apr 23, 2010 at 1:24 PM, Bayley, Alistair wrote: Looks like the London HUG domain (londonhug.net) registration has expired. Neil Bartlett was the registrant. Neil: do you plan to renew

[Haskell-cafe] London HUG domain expired

2010-04-23 Thread Bayley, Alistair
From: glasgow-haskell-users-boun...@haskell.org [mailto:glasgow-haskell-users-boun...@haskell.org] On Behalf Of Denys Rtveliashvili On the side note, is London HUG still active? The website seems to be down... Looks like the London HUG domain (londonhug.net) registration has expired.

RE: [Haskell-cafe] Re: why doesn't time allow diff of localtimes ?

2010-04-01 Thread Bayley, Alistair
bri...@aracnet.com Maciej Piechotka uzytkown...@gmail.com wrote: On Wed, 2010-03-31 at 19:29 -0700, bri...@aracnet.com wrote: wagne...@seas.upenn.edu wrote: Two values of LocalTime may well be computed with respect to different timezones, which makes the operation you ask

RE: [Haskell-cafe] cabal through PHPProxy

2010-03-31 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Dupont Corentin i'm using PHPProxy to go on the internet (www.phpproxy.fr). How can i tell cabal to use this? I think the normal way is through setting HTTP_PROXY env var e.g. set

RE: [Haskell-cafe] Haskell and XML, need some tips from practioners

2010-02-25 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Günther Schmidt Anyway through a very, very tedious process of xslt-transformations I finally have the XML document I need. But now I need to amend the attributes of some elements with looked

RE: [Haskell-cafe] Re: Haskell and XML, need some tips from practioners

2010-02-25 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Günther Schmidt You guys are right though, through the document function it would be possible. So any particular tool-set you could recommend? On Windows, the Microsoft xslt processor supports

RE: [Haskell-cafe] About code style ?

2010-02-02 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of zaxis For me i like C style instead of layout. For example, func1 a = do { -- ...; a * 2; -- ...; } The report has all the gory details. The brace+semicolon syntax isn't just

RE: [Haskell-cafe] big problems with MS Access backends

2010-01-29 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Günther Schmidt I need to use MS Access as a DB-backend. To make it not too easy there are tables with Umlaut Strings in some of the columns. And Takusen crashes outright. Can you try

[Haskell-cafe] RE: ssh ports for monk and nun?

2010-01-22 Thread Bayley, Alistair
From: libraries-boun...@haskell.org [mailto:libraries-boun...@haskell.org] On Behalf Of Stefan Monnier Trying to get ssh working via putty from behind my company firewall. My recommendation is to get access to an outside machine where you run an OpenVPN server on port 80 or 443. This

RE: [Haskell-cafe] RE: ssh ports for monk and nun?

2010-01-22 Thread Bayley, Alistair
From: cristiano.pa...@gmail.com [mailto:cristiano.pa...@gmail.com] On Behalf Of Cristiano Paris On Fri, Jan 22, 2010 at 11:38 AM, Bayley, Alistair alistair.bay...@invesco.com wrote: ... Tried and failed. Our firewall will be closed to port 22 for the forseaable future. I'll give

RE: [Haskell-cafe] Non-ASCII characters in .cabal files break Haddock?

2010-01-20 Thread Bayley, Alistair
I recently uploaded a package to Hackage[1], which contains a non-ASCII character in the .cabal file. That file is encoded with UTF-8, and it displays fine in Vim, Firefox, and even the Hackage package landing page. However, Haddock is failing to build it[2] -- apparently it can't handle

RE: [Haskell-cafe] diff implementation in haskell

2009-12-08 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Ketil Malde Don Stewart d...@galois.com writes: http://hackage.haskell.org/package/Diff Wherein we can read: | This is an implementation of the O(ND) diff algorithm [...]. It is

RE: [Haskell-cafe] Haddock Secrets?

2009-12-03 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Gregory Crosswhite Is there some secret to getting Haddock to work with literate Haskell sources that I am missing? For example, when I download Takusen and type cabal configure

RE: [Haskell-cafe] Wiki software?

2009-11-19 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of S. Doaitse Swierstra How about: http://hackage.haskell.org/package/orchid a simple, but nice wiki produced by one of our students Sebastiaan Visser, You can see it in action here:

RE: [Haskell-cafe] Opinion about JHC

2009-11-16 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of John Meacham On Fri, Nov 13, 2009 at 08:55:51PM +, Lennart Augustsson wrote: That was indeed my point. Since a compiler is a substantial program I would have more confidence it a compiler

RE: [Haskell-cafe] who wrote the Relational_Algebra page

2009-11-16 Thread Bayley, Alistair
on the Haskell wiki? http://www.haskell.org/haskellwiki/Relational_algebra Günther According to the page history, the userid is EndreyMark. Alistair * Confidentiality Note: The information contained in this message, and any

RE: [Haskell-cafe] Re: How to reliably open and close resources inMonadIO in the presence of exceptions?

2009-10-16 Thread Bayley, Alistair
-Original Message- From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Bas van Dijk I could of course write a genAlloca if the MonadIO class was extended with a bracket method: Besides extending MonadIO with bracket, maybe it's also

RE: [Haskell-cafe] Comments requested: succ Java

2009-09-28 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Edward Middleton If you have counterexamples, then perhaps you can name them. I'm looking for Java shops with 5+ developers and code bases of 100k converting over to Haskell. I don't

RE: [Haskell-cafe] Haddock and literate Haskell: annotations must bemarked as source?

2009-09-25 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Andy Gimblett Sent: 24 September 2009 20:19 On 24 Sep 2009, at 20:10, Duncan Coutts wrote: On Thu, 2009-09-24 at 19:48 +0100, Andy Gimblett wrote: That's great news for me, except: that's

RE: [Haskell-cafe] Haddock and literate Haskell: annotations must bemarked as source?

2009-09-24 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Andy Gimblett It seems to me that Haddock only picks up annotation comments (ie those that should be included in the produced documentation) from literate Haskell source when those annotations

RE: Re[2]: [Haskell-cafe] Re: Where do I put the seq?

2009-08-21 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Bulat Ziganshin To: Peter Verswyvelen But how does GHC implement the RealWorld internally? I guess look the base library sources for RealWorld

RE: [Haskell-cafe] Library function for map+append

2009-08-18 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Dusan Kolar During a small project I'm trying to develop a small application. It becomes quite often that I need a function mapapp: mapapp _ [] ap = ap mapapp f (a:as) ap = f a : map f as

RE: [Haskell-cafe] Library function for map+append

2009-08-18 Thread Bayley, Alistair
mapapp _ [] ap = ap mapapp f (a:as) ap = f a : map f as ap What does mapapp do? What is its type? Never mind, I've got it now. Alistair * Confidentiality Note: The information contained in this message, and any attachments,

[Haskell-cafe] RE: DDC compiler and effects;better than Haskell?

2009-08-12 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Pavel Perikov unless you have some insanely clever refactoring tool ready that can convert pure into monadic functions and vice versa. Not trying to attack the idea, just some thoughts: I

RE: [Haskell-cafe] Haskell and symbolic references

2009-05-29 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Is it possible with Haskell to call a function whose name is contained in a String? Something like: five = call_func add [2, 3] If not, perhaps this is acheivable using FFI? Dynamic loading

RE: [Haskell-cafe] Making videos of your project

2009-03-31 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Claus Reinke The problem comes when trying to scale down the size to what would fit in a browser window (what a viewer would see, without having to scroll around) - text becomes hard to read

RE: [Haskell-cafe] Design Patterns by Gamma or equivalent

2009-03-17 Thread Bayley, Alistair
Because Haskell is not OO, it is functional, I was wondering if there is some kind of analogous design pattern/template type concept that describe commonly used functions that can be factored out in a general sense to provide the same kind of usefulness that Design Patterns do for

RE: [Haskell-cafe] Re: Sugestion for a Haskell mascot

2009-03-12 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Deniz Dogan Python already uses a snake and it reminds me too much of vi and viper-mode etc. If so many people are reluctant towards the sloth, why don't we just go for the narwhal? They're

RE: [Haskell-cafe] Haskell Logo Voting will start soon!

2009-03-06 Thread Bayley, Alistair
The voting system we'll use is the Condorcet Internet Voting System (http://www.cs.cornell.edu/andru/civs.html ). The poll won't be public, but every subscriber to Haskell-Cafe will get a (private) voting ballot by email. I'll supervise the poll and make sure it's started, stopped and

RE: [Haskell-cafe] Haskell Logo Voting will start soon!

2009-03-06 Thread Bayley, Alistair
I'd love to hear about anything that I missed and/or that might influence the voting process in a significant way.  (There are probably some people subscribed with multiple addresses, but I'll be using the subscriber list from yesterday, so signing up now with lots of addresses won't

RE: [Haskell-cafe] Re: Left fold enumerator - a real pearl overlooked?

2009-03-02 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Manlio Perillo Sent: 02 March 2009 11:01 Eugene Kirpichov ha scritto: I'm not considering the lazy IO approach, as it doesn't involve any form of control over resources. This is not always

RE: [Haskell-cafe] Re: Left fold enumerator - a real pearl overlooked?

2009-03-02 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Duncan Coutts This can still be done using withFile and hGetContents. You just have to put the consumer inside the scope of withFile. The consumer can work in a streaming fashion. With lazy

[Haskell-cafe] seg-fault in mersenne-random with SSE2 (was Performance question)

2009-02-26 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Roel van Dijk I replaced the standard random number generated with the one from mersenne-random. On my system this makes the resulting program about 14 times faster than the original. I also made

RE: [Haskell-cafe] Haskell.org GSoC

2009-02-12 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Don Stewart You mean, everyone should be able to mess about with my documentation? This would be similar to give everyone commit rights to my repositories or allow everyone to edit the

RE: [Haskell-cafe] Data.List.sort, not so good?

2008-12-29 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Adrian Neumann I don't consider myself to be a very advanced Haskell programmer, but I could come up with a Mergesort that beats List.sort, time- and spacewise. http://hpaste.org/13403

RE: [Haskell-cafe] Problems Installing Takusen with Sqlite Backend

2008-12-23 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Günther Schmidt what does it take to install Takusen on Win32 with Sqlite backend? I did manage to install *plain* Takusen via cabal install by downgrading to Cabal-1.4 but when I want to

RE: [Haskell-cafe] Re: Threads with high CPU usage

2008-12-22 Thread Bayley, Alistair
From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Günther Schmidt I understand that Takusen does not use unsafe calls and would like to try it with that one then, but haven't find enough docs yet on how to use Takusen. Not a lot of

RE: [Haskell-cafe] sort and lazyness (?)

2008-12-19 Thread Bayley, Alistair
Currently, I'm experiencing what I would call strange behaviour: I've got a data-type data Fraction = Fraction Int Int to hold rational numbers (maybe there's already some built-in type for this in Haskell, http://haskell.org/ghc/docs/latest/html/libraries/base/Data-Ratio.html This

RE: [Haskell-cafe] Logos of Other Languages

2008-12-19 Thread Bayley, Alistair
Am 19.12.2008 um 11:43 schrieb Paulo Tanimoto: * an insect or animal: don't know which one, and I assume that beetle in the new book is trademarked by O'Reilly. Maybe something like FalconNL's Monica Monad, but a little more serious. Just as an idea:

RE: [Haskell-cafe] Re: sort and lazyness (?)

2008-12-19 Thread Bayley, Alistair
How does reverse work in constant space? At the moment I can't imagine it doing so; that's why I tried it, but of course you could be right. It allocates a new list cell for every cell it finds in the input list. If the input list can be garbage

RE: [Haskell-cafe] Re: sort and lazyness (?)

2008-12-19 Thread Bayley, Alistair
reverse creates the output list by pulling items from the head of the input list, and prefixing them to the output list. Tail recursively! That is a very important point. Let's have a closer look at an explicitly recursive version. reverse xs = go [] xs where go out

[Haskell-cafe] OT: representations for graphs

2008-12-19 Thread Bayley, Alistair
(OT, but I'm hoping some of you might have some ideas on this anyway...) I was wondering what alternative representations there are for graphs, or maybe if there might be a way to derive one/some from some insightful observations. For the purposes of storing and exmaining (querying) graphs in an

RE: [Haskell-cafe] Sugestion for a basic Utf8 type.

2008-12-02 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mauricio I would like to sugest a new basic type in Haskell. What if we had something like this (with any other quoting character): «Je ne parle pas français. Meu nome é Maurício. ¿Hablas español?» This would be of type

RE: Re[2]: [Haskell-cafe] Pure hashtable library

2008-08-27 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Davie Much better efficiency in what way? instead of going through many levels of tree/trie, lookup function will just select array element by hash value and look through a few elements in assoc list:

RE: [Haskell-cafe] Haskell garbage collector notes?

2008-08-06 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Galchin, Vasili Is http://hackage.haskell.org/trac/ghc/wiki/GarbageCollectorNotes a reliable source of info on the ghc garbage collector? Depends which version of GHC... the next release (6.10) will include the new

RE: [Haskell-cafe] FFI and struct arguments

2008-07-17 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Duncan Coutts Sent: 17 July 2008 12:46 On Wed, 2008-07-16 at 22:45 -0300, Felipe Lessa wrote: Hi, I tried googling and searching the haskellwiki about this but wasn't lucky enough. My question is: is there a way to send

RE: [Haskell-cafe] Question concerning datatype Either

2008-07-04 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of phy51km4n Why does that not work? : fromTuple (One a) = a fromTuple (Two a b) = (a, b) fromTuple (Three a b c) = (a, b, c) fromTuple (Four a b c d) = (a, b, c, d) Have you tried it? What are the types of

RE: [Haskell-cafe] Access to Oracle database from Haskell

2008-06-25 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Henning Thielemann I don't get an error. sqlplus is in $ORACLE_HOME/bin, but the RPM package also sets a link from /usr/bin/sqlplus to $ORACLE_HOME/bin, thus 'sqlplus' is in the $PATH also without $ORACLE_HOME. (But

RE: [Haskell-cafe] expected vs inferred type confusion

2008-06-23 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Howard the error: renao.hs:6:4: Couldn't match `HttpResponse' against `IO HttpResponse' Expected type: IO HttpResponse Inferred type: IO (IO HttpResponse) In the expression: return $ (handler

RE: [Haskell-cafe] Announce: Fortress talk in New York City

2008-06-13 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Henning Thielemann There will be a talk on Fortress... --- This e-mail may contain confidential and/or privileged information. You send potentially confidential information to a public mailing list? I realise

RE: [Haskell-cafe] RealFloat constraint on Complex type

2008-05-21 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard A. O'Keefe On 21 May 2008, at 9:25 am, Conal Elliott wrote: I think the practice of constraint in type definitions is generally discouraged, Is this true? If so, why? If I have a data type that simply

RE: [Haskell-cafe] Starting Haskell with a web application

2008-03-06 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Tibell I'm writing a web application server which I'm trying to make as simple to manage as Mongrel [1], a popular Ruby web server used to host web application written in e.g. Ruby on Rails. It uses Oleg style

[Haskell-cafe] RE: [Haskell] Announce: Yi 0.3

2008-01-31 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Philippe Bernardy * homepage: http://haskell.org/haskellwiki/Yi Took a quick look around and saw this: * GTK frontend works in Win32 So Yi works on Windows? hs-plugins was broken for Windows for a while, so I'm

RE: [Haskell-cafe] RE: [Haskell] Announce: Yi 0.3

2008-01-31 Thread Bayley, Alistair
From: Thomas Schilling [mailto:[EMAIL PROTECTED] So Yi works on Windows? hs-plugins was broken for Windows for a while, so I'm wondering if this has been fixed too. Does Yi use hs-plugins, or does it go straight down to ghc? (looking at the yi.cabal file seems to indicate no

RE: [Haskell-cafe] Simple network client

2008-01-30 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Verswyvelen As a newbie I made a nice little program that called readFile and writeFile on the same filename, but of course the file handle of the readFile was not closed yet = access denied. A nice case of getting

code.haskell.org vs darcs.haskell.org (was [Haskell-cafe] Enterprise Haskell AMQP library)

2008-01-28 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Don Stewart So you visit: community.haskell.org And submit your ssh public key, to allow you to log into code.haskell.org At the same time you can ask for a project account, which will give you space for a

RE: [Haskell-cafe] Re: OOP'er with (hopefully) trivial questions.....

2007-12-17 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nicholls, Mark The open case (as in OO) seems to be more like the Haskell class construct, i.e. if new types declare themselves to be members of a class then they must satisfy certain constaintsI can then specify equals

[Haskell-cafe] data vs newtype (was: OOP'er with (hopefully) trivial questions)

2007-12-17 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nicholls, Mark To recap... type introduces a synonym for another type, no new type is createdit's for readabilities sake. Newtype introduces an isomorphic copy of an existing type...but doesn't copy it's type class

[Haskell-cafe] RE: data vs newtype (was: OOP'er with (hopefully) trivial questions)

2007-12-17 Thread Bayley, Alistair
From: Bayley, Alistair newtype A a = A a and data A a = A a Sorry, that should read: newtype A = A a data A = A a * Confidentiality Note: The information contained in this message, and any attachments, may contain

RE: [Haskell-cafe] RE: data vs newtype (was: OOP'er with (hopefully)trivial questions)

2007-12-17 Thread Bayley, Alistair
From: Bayley, Alistair Sorry, that should read: newtype A = A a data A = A a Ignore that; I was right first time. Sorry 'bout the spam, and the lack of brain. * Confidentiality Note: The information contained

RE: [Haskell-cafe] New slogan for haskell.org

2007-12-12 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Derek Elkins (Not directed at gwern in particular) I have a better idea. Let's decide to do nothing. The benefits of this approach are: 1) it takes zero effort to implement, 2) the number of people who immediately give up

RE: [Haskell-cafe] building HUnit and other packages on Windows cygwin...

2007-12-05 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Galchin Vasili I believe that HUnit has absolutely not other package dependencies. When I do a runhaskell Setup.hs build, I get the following error message: gcc: installation problem, cannot exec `cc1': No such file or

RE: [Haskell-cafe] cabal under windows (was Re: Haskell-CafeDigest, Vol 51, Issue 180)

2007-11-29 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Duncan Coutts On Thu, 2007-11-29 at 13:51 +1100, Tim Docker wrote: Is it actually reasonable to expect any cabal packages that depend on external c libraries and headers to build out of the box on windows? How can

RE: [Haskell-cafe] Dynamically find out instances of classes (pluginsystem for haskell)

2007-11-22 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Radoslaw Grzanka Hi, Is there any plugin system for haskell? For example, in Java, I can load all compiled classes from given directory, check their interfaces and run some methods through reflection etc. Is it possible in

RE: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Bayley, Alistair
| the php documentation has user contributed notes | http://www.php.net/manual/en/introduction.php | I think this is a very nice feature. * Hardest of all: evolution. Both GHC's user manual and library docs change every release. Even material that doesn't change can get moved

RE: [Haskell-cafe] Fwd: Trouble using HDBC-postgres on Windows - can'tfind libpq.dll

2007-11-13 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Justin Bailey Well, I answered my own question. Unlike UNIX, specifying a library without the leading lib causes the library to not be found. Not sure if that's a GHC linking problem or what. Changing the library requirement

RE: [Haskell-cafe] Type error with simple list function

2007-11-08 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of This simple function definition that should rotate a list (put the first item in the last place) fails with a rather cryptic error with ghc: f :: [a] -[a] -[a] f (w : ws) = ws : w Couldn't match expected type `[a] -

RE: [Haskell-cafe] WideFinder

2007-11-07 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of manu Haskell is conspicuously absent from the languages used to tackle Tim Bray's Wide Finder problem (http://www.tbray.org/ongoing/When/200x/2007/10/30/WF-Results?updated). So far we have Ocaml, Erlang, Python, Ruby, etc...

RE: [Haskell-cafe] type/class question: toString

2007-11-06 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Graham Fawcett Is there a way to declare a 'toString' function, such that toString x | x is a String = x toString x | x's type is an instance of Show = show x Perhaps, in the type system, there's a way to declare a

[Haskell-cafe] RE: [Haskell] Re: Trying to install binary-0.4

2007-10-16 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simon Marlow x changes == API changed x constant but y changes == API extended only x and y constant == API is identical Ordering on versions is lexicographic, given multiple versions that satisfy a dependency

[Haskell-cafe] RE: [Haskell] Re: Trying to install binary-0.4

2007-10-16 Thread Bayley, Alistair
From: Simon Marlow [mailto:[EMAIL PROTECTED] The lexicographical ordering would make 10.0 9.3. In general, A.B C.D iff A C or A == C B D. When we say the latest version we mean greatest, implying that version numbers increase with time. Does that help? Sort of. It's what

RE: [Haskell-cafe] New slogan for haskell.org

2007-10-05 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Don Stewart It was raised at CUFP today that while Python has: ... Note its all about how it can help you. The Haskell website has the rather strange motivational text: ... Can't we embrace the power of

RE: [Haskell-cafe] YI on Windows?

2007-09-26 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Verswyvelen I retrieved the latest version of YI, but I failed to compile it for Windows (GHC 6.6.1, and I got alex-2.1.0, haddock-0.8, HsColour, GTK, but not VTY) Before even pasting the error log, is it supported

RE: [Haskell-cafe] Developing XPCOM components (Firefox extensions) inHaskell

2007-09-12 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pasqualino 'Titto' Assini I wondered if anyone could advice on how to develop XPCOM components in Haskell. I am aware that HDirect supports COM and that there are some similarities with XPCOM but I do not have the

RE: [Haskell-cafe] Dynamic thread management?

2007-08-10 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hugh Perkins Not many replies on this thread? Am I so wrong that no-one's even telling me? I find it hard to believe that if there were obvious errors in the proposition that anyone would resist pointing them out to me

RE: FW: RE [Haskell-cafe] Monad Description For Imperative Programmer

2007-08-02 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of peterv However, one thing which I find annoying is that a classic pure function cannot evaluate an IO function unless you use unsafePerformIO; one must promote (?demote) the pure function into the IO monad. That's just a

[Haskell-cafe] Conditional compilation of Setup.hs

2007-07-31 Thread Bayley, Alistair
I'd like to add a #ifdef to Takusen's Setup.hs, so that we can have a single source file that will compile with ghc-6.6 and ghc-6.6.1. With ghc-6.6 and Cabal-1.1.6.1 we use splitFileName and joinPaths from Distribution.Compat.FilePath. With ghc-6.6.1 (which includes Cabal-1.1.6.2) these have been

RE: [Haskell-cafe] Handling custom types in Takusen

2007-07-27 Thread Bayley, Alistair
I noticed that in Takusen there're just two instances to implement to make any Haskell type db-serializable: DBBind / SqliteBind for serialization and DBType for deserialization. I wanted to implement blob serialization for PackedStrings, but I noticed that both DBBind and DBType classes

RE: [Haskell-cafe] Handling custom types in Takusen

2007-07-27 Thread Bayley, Alistair
From: Salvatore Insalaco [mailto:[EMAIL PROTECTED] The main reason is that I'm working on a Sqlite back-end for Darcs, that will be used to store file contents. I think to choose Takusen as back-end library mainly because it has the blob functions of Sqlite already mapped. Umm, yes... I

RE: [Haskell-cafe] Handling custom types in Takusen

2007-07-27 Thread Bayley, Alistair
From: Salvatore Insalaco [mailto:[EMAIL PROTECTED] 2007/7/27, Bayley, Alistair [EMAIL PROTECTED]: Also, in Sqlite 3.4, they introduced new functions for incremental reading / writing of Blobs. I could use them in the future. Seems reasonable. I recall Oleg saying something privately

RE: [Haskell-cafe] UTF-16

2007-07-26 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Donald Bruce Stewart andrewcoppin: I don't know if anybody cares, but... Today a wrote some trivial code to decode (not encode) UTF-16. I believe somebody out there has a UTF-8 decoder, but I needed UTF-16 as it

RE: [Haskell-cafe] HDBC or HSQL

2007-07-26 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Donald Bruce Stewart Does anyone know why Takusen isn't on hackage yet? It appears to be cabalised, and have a tarball: http://hackage.haskell.org/packages/archive/pkg-list.html#cat:Database

[Haskell-cafe] RE: Optimising UTF8-CString - String marshaling, plus comments on withCStringLen/peekCStringLen

2007-07-24 Thread Bayley, Alistair
From: Simon Marlow [mailto:[EMAIL PROTECTED] http://darcs.haskell.org/takusen/Foreign/C/UTF8.hs In that code you have: | x = 0x0010 -- should be 0x001F I wasn't aware that the largest unicode code point had changed. Do you have a reference? Should we change

RE: [Haskell-cafe] Optimising UTF8-CString - String marshaling, plus comments on withCStringLen/peekCStringLen

2007-07-23 Thread Bayley, Alistair
Weird... I sent this over a month ago, and was a bit puzzled as to why it didn't appear on the list. Has it been waiting for a moderator to release? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alistair Bayley Sent: 04 June 2007 09:44 To:

RE: [Haskell-cafe] Optimising UTF8-CString - String marshaling, plus comments on withCStringLen/peekCStringLen

2007-07-23 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stefan O'Rear fromUTF8Ptr unboxes fine for me with HEAD and 6.6.1. - the chr function tests that its Int argument is less than 1114111, before constructing the Char. It'd be nice to avoid this test. You want unsafeChr

[Haskell-cafe] RE: haskell for web

2007-07-17 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ??? help haskell for web code http://www.haskell.org/haskellwiki/Applications_and_libraries/Web_programming Try a few of these out (whatever meets your needs). For web apps WASH and HAppS seem popular. Feel free to ask the

RE: [Haskell-cafe] money type ?

2007-07-12 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simon Michael Is there a type or library out there that's good for representing money and other quantities while avoiding rounding errors ? I think Data.Fixed would be a good choice:

RE: [Haskell-cafe] money type ?

2007-07-12 Thread Bayley, Alistair
From: Brandon S. Allbery KF8NH [mailto:[EMAIL PROTECTED] I was playing with that when your message came in: mress:5003 Z$ cat foo.hs import Data.Fixed data E2 = E2 instance HasResolution E2 where resolution _ = 100 type Money = Fixed E2 ... *Main :m +Data.List *Main

RE: [Haskell-cafe] Tools for Haskell and COM

2007-06-27 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simon Peyton-Jones There's a bit of a chicken-and-egg problem here; the COM tools are not well maintained, so that discourages use, which in turn makes it less rewarding to work on them. What I don't know is the level

RE: [Haskell-cafe] Re: Plugin Problem

2007-06-21 Thread Bayley, Alistair
[mailto:[EMAIL PROTECTED] On Behalf Of Daniel Fischer I suppose in contrast to the version from HackageDB, which I got myself on monday, the darcs version works with ghc = 6.6, or I probably would have heard about it. So I'll try to get me that, only where?

RE: [Haskell-cafe] To yi or not to yi, is this really the question? A plea for a cooperative, ubiquitous, distributed integrated development system.

2007-06-21 Thread Bayley, Alistair
[mailto:[EMAIL PROTECTED] On Behalf Of Tomasz Zielonka On Mon, Jun 18, 2007 at 10:05:40PM +0100, Pasqualino 'Titto' Assini wrote: Most languages, even Java, have a reflection capability to dynamically inspect an object. It is surprising that Haskell doesn't offer it. I'll

RE: [Haskell-cafe] Redefining Disjunction

2007-06-13 Thread Bayley, Alistair
[mailto:[EMAIL PROTECTED] On Behalf Of PR Stanley Hi Can you think of a fourth way of redefining disjunct using pattern matching? vee :: Bool - Bool - Bool vee _ True = True vee True _ = True vee _ _ = False How many ways do you want? I think this is correct, and is only strict in the

RE: [Haskell-cafe] haskell version of fractal benchmark

2007-06-08 Thread Bayley, Alistair
[mailto:[EMAIL PROTECTED] On Behalf Of Andrew Coppin Donald Bruce Stewart wrote: Some things to remember using Doubles: * {-# OPTIONS -fexcess-precision #-} * -fvia-C * -fbang-patterns * -optc-O2 -optc-mfpmath=sse -optc-msse2 * -optc-march=pentium4 1. What

RE: [Haskell-cafe] haskell version of fractal benchmark

2007-06-08 Thread Bayley, Alistair
[mailto:[EMAIL PROTECTED] On Behalf Of Donald Bruce Stewart 3) -fbang-patterns Better than `seq` Better in the more convenient to write sense, right? AFAIUI, seq and bang patterns should be equivalent. Alistair *

RE: literate haskell syntax highlighting issues in vim(Re:[Haskell-cafe] OK, so this VIM thing -- how do I make it actually work?)

2007-06-05 Thread Bayley, Alistair
[mailto:[EMAIL PROTECTED] On Behalf Of Dougal Stanton On 05/06/07, Claus Reinke [EMAIL PROTECTED] wrote: (tested on ghc/compiler/stranal/StrictAnal.lhs): Since when did GHC become NSFW?! :-O /ducking and running... Says more about you than anything else...

RE: [Haskell-cafe] Cute code [was: The C Equiv of != in Haskellmiscommunication thread]

2007-05-29 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Kraeutler anyhow. if someone has a pedestrian's guide to the fixed point operator lying around, a link would be much appreciated. Just to add to the noise... I've always quite liked Richard Gabriel's The Why of Y

[Haskell-cafe] Inaugural London HUG meeting; attendee list suggestion

2007-05-22 Thread Bayley, Alistair
Tomorrow evening's London Haskell User Group meeting has a reasonable list of attendees (inferred from the comments): http://www.londonhug.net/2007/04/26/announcement-first-meeting-of-the-lo ndon-haskell-user-group/ I think it'd be a good idea to do what the BCS-SPA does, and maintain a

[Haskell-cafe] RE: [Haskell] Inaugural London HUG meeting; attendee list suggestion

2007-05-22 Thread Bayley, Alistair
[this time to the list :-] Should we start something here, perhaps? http://www.haskell.org/haskellwiki/London_Haskell_User_Group/Events/2007 0426 Sounds a plausible idea, but shouldn't it be 20070523? Jeremy Yeah... sorry, I totally fished that date out of a body cavity. I think it

RE: [Haskell-cafe] Re: Editor

2007-05-22 Thread Bayley, Alistair
I'm sure that I can quite reliably hit the command editor keybindings I use many, many times faster than if I had to select them from a menu. Note that the claimed time-consuming part is not to actually press the keybinding, but to chose and remember which one to press. Yes... except

  1   2   3   >