Re: [Haskell-cafe] Re: GSoC: Improving Cabal's Test Support

2010-04-07 Thread Duncan Coutts
On Tue, 2010-04-06 at 18:51 -0400, Thomas Tuegel wrote: > Hello again! > > Based on the invaluable feedback I've received, I've made some > revisions to the proposal I made a few days ago (at the end of this > post, after my signature). I apologize for the length of my post, but > I'd like once a

Re: [Haskell-cafe] libraries [was GUI haters]

2010-04-07 Thread Duncan Coutts
> servers. The core system works everywhere, but many contributed > libraries don't. GUIs are the big showstopper. It's really not that bad. I have customers using Haskell GUI applications on Windows (Gtk2Hs). We hardly had any problems at all. -- Duncan Coutts, Haskell Consul

Re: [Haskell-cafe] Re: GSoC: Improving Cabal's Test Support

2010-04-08 Thread Duncan Coutts
On Wed, 2010-04-07 at 16:09 -0400, Thomas Tuegel wrote: > On Wed, Apr 7, 2010 at 3:33 PM, Duncan Coutts > wrote: > > The importance of this is that it lets us develop improved testsuite > > interfaces in future. At the moment there are two test interfaces we > > want to su

[Haskell-cafe] Re: GSoC: Hackage 2.0

2010-04-09 Thread Duncan Coutts
On Wed, 2010-04-07 at 00:40 -0400, Matthew Gruen wrote: > Hi Haskellers, > > I'm Matt Gruen (Gracenotes in #haskell), and the Hackage 2.0 SoC > project at > really piqued my interest. It seems doable, in a summer, to make the > new hack

[Haskell-cafe] Re: GSoC proposal: Extend Cabal Preprocessors.

2010-04-11 Thread Duncan Coutts
On Thu, 2010-04-08 at 22:10 -0400, Diego Echeverri wrote: > Hi! > > I finish writing my proposal (maybe a bit too late). > I would be glad to read any feedback. Hi Diego, Generally a good proposal. It would be great for Cabal's "Simple" build system to be able deal with pre-processor chaining an

Re: [Haskell-cafe] Cabal-install

2010-04-11 Thread Duncan Coutts
On Mon, 2010-03-08 at 17:33 +, Andrew Coppin wrote: > Miguel Mitrofanov wrote: > > See http://www.haskell.org/cabal/ for more information. > > ^ > > | > > + > > Oh, sure, like I haven't already tried *that*. ;-) BTW, for future refer

Re: [Haskell-cafe] Cabal dependency hell

2010-04-11 Thread Duncan Coutts
On Mon, 2010-03-08 at 13:33 +, Maciej Piechotka wrote: > While I love Haskell it's packaging system have some problems - > especially with parsec. > > Currently I'm not able to install an practically anything using cabal > due to version mismatches (or at least packages linking to both version

Re: [Haskell-cafe] Multiple versions of a cabal package Or what's the right way to update?

2010-04-11 Thread Duncan Coutts
On Sun, 2010-03-14 at 17:50 +0100, david fries wrote: > Dear Caféistas > > I desperately need your collective knowledge I have been working on > porting the haskell-platform to the FreeBSD operating system for a while > now and some versioning issues have come up. > > FreeBSD is still running on

Re: [Haskell-cafe] passing cpp options to c2hs from cabal

2010-04-11 Thread Duncan Coutts
On Mon, 2010-03-01 at 10:07 -0500, Chris Casinghino wrote: > This works great, thanks! > > As a footnote: I doubt I will be the only one is confused because > "cc-options" get passed to c2hs but "cpp-options" don't. Perhaps the > cabal designers should revisit this choice. I mostly agree. What

Re: [Haskell-cafe] Alternative dependencies in Cabal file

2010-04-11 Thread Duncan Coutts
On Fri, 2010-03-19 at 00:34 +0100, Henning Thielemann wrote: > Matthias Reisner schrieb: > > Thanks, I missed that the flags are set dynamically if a dependency > > cannot be satisfied. > Only cabal-install does this, plain Cabal only takes flags that were set > by the user. No, plain Cabal does

Re: [Haskell-cafe] developing against privately patched libraries, and cabal

2010-04-11 Thread Duncan Coutts
On Sun, 2010-03-21 at 13:15 -0400, Leon Smith wrote: > As somebody who's hacked on cabal-install a bit (but don't have a > worthwhile patch to contribute (yet?)), I can tell you that versions > support a "tag" structure, at least internally, but I haven't seen a > non-empty tags field and don't

Re: [Haskell-cafe] libraries and executables in cabal

2010-04-11 Thread Duncan Coutts
On Thu, 2010-03-25 at 14:52 +0100, Paul Brauner wrote: > Hi, > > i'm working on a project made of > > - lots of modules > - one excutable importing these modules > - another excutable importing these same modules > > I don't especially want to expose those modules as libraries, especially > o

Re: [Haskell-cafe] Cabal dependency hell

2010-04-12 Thread Duncan Coutts
On Sun, 2010-04-11 at 18:43 +0200, Maciej Piechotka wrote: > > * Build reporting in the hackage server > > The idea here is that cabal sends back anonymous reports to the > > server to say if a package compiled or not, and against what > > versions of dependencies. Thi

Re: [Haskell-cafe] Cabal dependency hell

2010-04-12 Thread Duncan Coutts
On Sun, 2010-04-11 at 14:28 -0700, Jason Dagit wrote: > I've noticed another type of diamond dependency problem. Suppose I > build and install Foo today and it depends on Bar 2.0.0. In a week, I > install Bar 2.0.1. Next I installed Baz that also depends on Bar, and > it gets Bar 2.0.1. When I

Re: [Haskell-cafe] Cabal update problem

2010-04-12 Thread Duncan Coutts
On Fri, 2010-02-19 at 12:21 +0100, Maciej Podgurski wrote: > Hi, > > after updating to cabal-install-0.8.0/Cabal-1.8.0.2 with GHC 6.10.4, I > always get an error when updating the package list: > > > cabal update > Downloading the latest package list from hackage.haskell.org > cabal:

[Haskell-cafe] ANNOUNCE: c2hs 0.16.2

2010-04-23 Thread Duncan Coutts
All, c2hs version 0.16.2 is out and is available from hackage http://hackage.haskell.org/package/c2hs The only significant change in this release is that it works with ghc-6.12. Note that it is not currently possible to bind to C functions that use "long double" as the corresponding Haskell type

Re: [Haskell-cafe] Re: GSoC: Improving Cabal's Test Support

2010-04-28 Thread Duncan Coutts
On 28 April 2010 09:24, Richard G. wrote: > I think that formatted plain-text output would be much better than XML, > something that is human-readable and relatively easy to parse via machine. >  Something similar to the GHC error output would work well because > developers are familiar with it.

Re: [Haskell-cafe] Re: GSoC: Improving Cabal's Test Support

2010-04-28 Thread Duncan Coutts
On Wed, 2010-04-28 at 10:42 -0400, Thomas Tuegel wrote: > On Wed, Apr 28, 2010 at 4:54 AM, Duncan Coutts > wrote: > > On 28 April 2010 09:24, Richard G. wrote: > >> I think that formatted plain-text output would be much better than XML, > >> something that is huma

Re: [Haskell-cafe] Re: GSoC: Improving Cabal's Test Support

2010-04-28 Thread Duncan Coutts
On Wed, 2010-04-28 at 09:55 -0700, Rogan Creswick wrote: > On Wed, Apr 28, 2010 at 8:19 AM, Duncan Coutts > wrote: > > > > Yes, it means the testing agent (cabal-install or some other > > program/system) can do more than simply run all the tests. It means it > >

[Haskell-cafe] Well-Typed are hiring

2010-05-10 Thread Duncan Coutts
the job. We are more than happy to answer informal enquiries. Contact Duncan Coutts or Ian Lynagh for further information, either by email or IRC. The deadline for applications is Friday 11 June 2010. -- Duncan Coutts, Haskell Consultant Well-Typed LLP, http://www.well-typed.com

Re: [Haskell-cafe] Windows 7 Permission Denied Problem on Cabal

2010-05-17 Thread Duncan Coutts
On 17 May 2010 09:37, Phyx wrote: > The other approach I like much better is instead of doing global installs, > do user installs. In fact, I made it my default. Which solves any permission > error, but means every user on that machine has to install the libs > separately which shouldn’t be a pro

Re: [Haskell-cafe] cabal: problem building ffi shared library and significance of __stginit

2010-05-19 Thread Duncan Coutts
On Tue, 2010-05-18 at 17:31 -0400, Anthony LODI wrote: > Hello, > > I'm trying to build some haskell code as a .so/.dll so that it can > ultimately be used by msvc. I have it working when I compile by hand > (listed below) but I can't get the exact same thing built/linked with > cabal. On linux

Re: [Haskell-cafe] How to set a GHC option for a single module and a specific version of GHC?

2010-06-07 Thread Duncan Coutts
On 5 June 2010 09:28, Bernie Pope wrote: > Hi, > > I'm looking for a way to set a GHC compile option on a specific module > (not every module in the program) but only for a specific version of > GHC. Ideally within the confines of cabal, and in a portable way. > > GHC provides the OPTIONS_GHC prag

Re: [Haskell-cafe] Has anybody tried to upgrade Cabal on HP (Win 7)

2010-06-18 Thread Duncan Coutts
On 18 June 2010 15:48, Daniel Kahlenberg wrote: > Hello, > > I recently installed HP 2010.1.0.0 within Windows 7 and wanted to > upgrade the Cabal package to 1.8.0.6 today, sadly I got stuck on a > failure building the "directory" package. > > So I tried to isolate the messages a bit and gave the

Re: [Haskell-cafe] Rewriting a famous library and using the same name: pros and cons

2010-06-23 Thread Duncan Coutts
On 23 June 2010 19:57, Gregory Crosswhite wrote: > cabal is the only mechanism that the vast majority of Haskell-users know how > to use these days. Resolving diamond dependencies safely relies on knowing > tha tthe use of different libraries is entirely internal to the library in > question -- a

Re: [Haskell-cafe] Rewriting a famous library and using the same name: pros and cons

2010-06-23 Thread Duncan Coutts
On Wed, 2010-06-23 at 21:05 -0400, Gregory Crosswhite wrote: > On 6/23/10 8:06 PM, Duncan Coutts wrote: > > Consider an example where we want to avoid using two versions of a > > dependency: > > > > The htar program depends on the tar and zlib packages. The tar and

Re: [Haskell-cafe] Re: Mining Twitter data in Haskell and Clojure

2010-06-24 Thread Duncan Coutts
On 24 June 2010 13:10, Simon Marlow wrote: > On 17/06/2010 06:23, braver wrote: > >> I'll work with Simon to investigate the runtime, but would welcome any >> ideas on further speeding up cafe4. > > An update on this: with the help of Alex I tracked down the problem (an > integer overflow bug in G

Re: [Haskell-cafe] Cabal and WinHugs

2009-04-16 Thread Duncan Coutts
On Sun, 2009-04-12 at 20:02 -0700, Iavor Diatchki wrote: > Hello, > What is the preferred way to install a cabal package so that it works > with winhugs? When I tried "cabal install --user --hugs" I got an > error that it could not find "hugsffi". I managed to get things > working by manually dow

Re: [Haskell-cafe] glut installation using cabal failed

2009-04-16 Thread Duncan Coutts
On Wed, 2009-04-15 at 01:53 +0200, Henk-Jan van Tuyl wrote: > On Tue, 14 Apr 2009 08:25:52 +0200, Raja Koduru wrote: > > > hi, > > > > I am a beginner to haskell. > > > > I am trying to install glut using "cabal install glut" > > Pasting here a tail of the output > > checking for GLUT/glut.h...

Re: [Haskell-cafe] how to upgrade?

2009-04-16 Thread Duncan Coutts
On Fri, 2009-04-03 at 12:47 +0200, Johannes Waldmann wrote: > Is there a nice way of upgrading ghc: > I mean does cabal-upgrade know to install > exactly the packages that I had with the previous ghc version? There will be soon! http://hackage.haskell.org/trac/hackage/ticket/199 There's a patch

Re: [Haskell-cafe] Data.ByteString woes

2009-04-16 Thread Duncan Coutts
On Thu, 2009-04-16 at 12:49 +0100, David Carter wrote: > http://pastebin.com/m88c7dc > > It works fine if you delete the ".Lazy". > > Enjoy, and thanks... This will be because the version of the regex lib you're using does not have an instance for lazy ByteStrings. Do you know what versions of t

Re: [Haskell-cafe] Re: Looking for the fastest Haskell primes

2009-04-16 Thread Duncan Coutts
On Thu, 2009-04-16 at 07:11 -0400, Daniel Peebles wrote: > I vaguely remember someone (maybe Duncan Coutts?) saying that this was > a commonly held misconception, and that GHC did indeed GC CAFs when > optimization is enabled. If I am remembering incorrectly, does anyone > have a re

Re: [Haskell-cafe] ANNOUNCE: Utrecht Haskell Compiler (UHC) -- first release

2009-04-19 Thread Duncan Coutts
On Sun, 2009-04-19 at 00:41 +0200, Thomas Davie wrote: > > Apparently a "user" install of uuagc and fgl isn't good enough. Fun > > to know. > > I've found user installs don't work at all on OS X, various people in > #haskell were rather surprised to discover this, so apparently it's > not

Re: [Haskell-cafe] ANNOUNCE: Utrecht Haskell Compiler (UHC) -- first release

2009-04-19 Thread Duncan Coutts
On Sun, 2009-04-19 at 10:02 +0200, Thomas Davie wrote: > >> It really rather makes "cabal install" rather odd – because it > >> doesn't actually install anything you can use without providing extra > >> options! > > > > It should work fine, you'll need to give more details. > > This has been

Re: [Haskell-cafe] Re: ANNOUNCE: Utrecht Haskell Compiler (UHC) -- first release

2009-04-19 Thread Duncan Coutts
On Sun, 2009-04-19 at 11:47 -0700, Simon Michael wrote: > I meant, why is it too late to change the Setup interface to match > cabal's --user by default behaviour ? All the distro packages etc use the Setup.hs interface without explicitly specifying --global. Duncan _

Re: [Haskell-cafe] Cabal's default install location

2009-04-21 Thread Duncan Coutts
On Tue, 2009-04-21 at 09:20 +0200, Thomas Davie wrote: > There seems to be an assumption amongst the community that a user's > home directory is the most useful place for cabal to install to by > default. A few people have challenged that. I wanted to find out > which one most people do act

Re: [Haskell-cafe] Re: Cabal's default install location

2009-04-21 Thread Duncan Coutts
On Tue, 2009-04-21 at 12:41 +0200, Achim Schneider wrote: > alias cabal='cabal --global' We do have a config file you know. It's exactly to let you persistently set command line flags like this. Duncan ___ Haskell-Cafe mailing list Haskell-Cafe@haskel

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-21 Thread Duncan Coutts
On Tue, 2009-04-21 at 13:52 +0100, Neil Mitchell wrote: > > P.S. We really need such a well written style guide for > > haskell. Python has this nice PEP (Python Enhancement > > Proposals). Should we start making our own HEP? > > We have one: urchin.earth.li/~ian/style/haskell.html

Re: [Haskell-cafe] Re: ANNOUNCE: Utrecht Haskell Compiler (UHC) -- first release

2009-04-21 Thread Duncan Coutts
On Tue, 2009-04-21 at 12:31 +0200, david48 wrote: > For what it's worth, It's bothered me often enough that cabal doesn't > install globally by default that I had to reinstall ghc in order to > solve package issues. Do you know what the problem was exactly? It's possible to get problems with overl

Re: [Haskell-cafe] Re: Cabal's default install location

2009-04-22 Thread Duncan Coutts
On Wed, 2009-04-22 at 11:33 +0200, david48 wrote: > > The default should at least be consistent among cabal install, runghc > Setup.hs, installing GHC, Gtk2Hs, and so on. > > If GHC is installed in /home/myusername/local, Where you choose to install ghc is not related. > what does cabal insta

Re: [Haskell-cafe] Re: Cabal's default install location

2009-04-22 Thread Duncan Coutts
On Wed, 2009-04-22 at 12:26 +0200, david48 wrote: > > > On Wed, Apr 22, 2009 at 12:06 PM, Duncan Coutts > wrote: > On Wed, 2009-04-22 at 11:33 +0200, david48 wrote: > > > > The default should at least be consistent among caba

Re: [Haskell-cafe] Re: ANNOUNCE: Utrecht Haskell Compiler (UHC) -- first release

2009-04-22 Thread Duncan Coutts
On Wed, 2009-04-22 at 12:21 +0200, david48 wrote: > Do you know what the problem was exactly? It's possible to get > problems with overlap between the user and global package dbs, > but the exact same problems can also happen just within the > global package db. >

Re: [Haskell-cafe] Re: ANNOUNCE: Utrecht Haskell Compiler (UHC) -- first release

2009-04-22 Thread Duncan Coutts
On Wed, 2009-04-22 at 13:20 +0200, david48 wrote: > > > On Wed, Apr 22, 2009 at 1:01 PM, Duncan Coutts > wrote: > > On Wed, 2009-04-22 at 12:21 +0200, david48 wrote: > > > Lines starting with -- are comments. You need to unc

Re: [Haskell-cafe] Re: Cabal's default install location

2009-04-23 Thread Duncan Coutts
Thanks for all that. Some good suggestions. I've linked the results in the ticket on this issue so someone can re-read all the suggestions in detail when they come to update the behaviour (hopefully for 0.6.4 or something). http://hackage.haskell.org/trac/hackage/ticket/289#comment:17 Duncan On

Re: [Haskell-cafe] How to install HOpenGL to Windows?

2009-04-26 Thread Duncan Coutts
On Sun, 2009-04-26 at 19:03 +0200, Sven Panne wrote: > The build process in itself is purely Cabal-based, it is only the > configuration above which done via autoconf. So in theory you could write the > few output files of the configure run by hand and then use Cabal, without any > MinGW/MSYS o

Re: [Haskell-cafe] Memory usage of cabal install

2009-04-27 Thread Duncan Coutts
On Mon, 2009-04-27 at 12:56 +0200, Krzysztof Kościuszkiewicz wrote: > Hello Haskell-Café, > > I have a problem with high memory usage of cabal-install. Whenever I > try to install or upgrade a package, cabal manages to consume 1,3G of > memory before I killed it (on a 32-bit machine with 1 GB of

Re: [Haskell-cafe] old-time conflict when installing phooey

2009-04-27 Thread Duncan Coutts
On Sun, 2009-04-26 at 21:49 -0700, Daryoush Mehrtash wrote: > > When I try to install phooey I get conflict with old-time that I am > not sure how to resolve. Any ideas? > > > > cabal install phooey > Resolving dependencies... > cabal: dependencies conflict: ghc-6.10.1 requires old-time ==1.0.

Re: [Haskell-cafe] How to install HOpenGL to Windows?

2009-04-29 Thread Duncan Coutts
On Mon, 2009-04-27 at 19:03 +0200, Sven Panne wrote: > Am Montag, 27. April 2009 00:11:20 schrieb Duncan Coutts: > > On Sun, 2009-04-26 at 19:03 +0200, Sven Panne wrote: > > [...] > > >* How to link programs using OpenGL > > > > This is because the G

Re: [Haskell-cafe] How to install HOpenGL to Windows?

2009-04-30 Thread Duncan Coutts
On Thu, 2009-04-30 at 19:44 +0200, Sven Panne wrote: > That's why the autoconf macros are so tricky. Re-inventing the wheel in > Haskell is not something I'd like to do. Note: I see autoconf as a necessary > evil, not as a glorious tool. The predefined autoconf macros contain man > years > (if

Re: [Haskell-cafe] How to install HOpenGL to Windows?

2009-04-30 Thread Duncan Coutts
On Thu, 2009-04-30 at 23:31 +0100, Claus Reinke wrote: > > The thing is, it doesn't really matter if autoconf macros work fine for > > every Unix ever invented. The Windows users simply cannot use packages > > with configure scripts. They complain about it a lot. We can call them > > foolish for no

Re: [Haskell-cafe] What to do when cabal dependencies are not your friend.

2009-05-01 Thread Duncan Coutts
On Fri, 2009-05-01 at 16:55 -0500, Thomas Hartman wrote: > I did a little write-up on an annoyance I frequently have when > developing patch-tag, a happs application that has a lot of > dependencies. > > Basically, on a virgin linux environment with the same cabal and ghc > version as before, a ca

[Haskell-cafe] Re: [Haskell] ANN: Takusen 0.8.4

2009-05-01 Thread Duncan Coutts
On Fri, 2009-05-01 at 16:16 +0100, Alistair Bayley wrote: > ANN: Takusen 0.8.4 > The release bundle: > > http://hackage.haskell.org/packages/archive/Takusen/0.8.4/Takusen-0.8.4.tar.gz > If you have cabal-install, then this command should work: > cabal install Takusen --flags="sqlite odbc or

Re: [Haskell-cafe] When is it OK to create a new mailing list?

2009-05-04 Thread Duncan Coutts
On Mon, 2009-05-04 at 12:51 +0200, Wolfgang Jeltsch wrote: > Am Samstag, 2. Mai 2009 14:11 schrieb Mads Lindstrøm: > > Hi > > > > I wanted a mailing list for my project WxGeneric and I am wondering when > > it is OK to do so? How big must the potential audience be? Is there any > > kind of etiquett

Re: [Haskell-cafe] Estimating the time to garbage collect

2009-05-04 Thread Duncan Coutts
On Fri, 2009-05-01 at 09:14 +0100, Neil Davies wrote: > Hi > > With the discussion on threads and priority, and given that (in > Stats.c) there are lots of useful pieces of information that the run > time system is collecting, some of which is already visible (like the > total amount of memo

Re: [Haskell-cafe] Estimating the time to garbage collect

2009-05-04 Thread Duncan Coutts
On Mon, 2009-05-04 at 15:05 +0100, Neil Davies wrote: > Duncan > > That was my first thought - but what I'm looking for is some > confirmation from those who know better that treating the GC as > 'statistical source' is a valid hypothesis. If the thing is 'random' > that's fine - if its timi

Re: [Haskell-cafe] HDBC 2.1, UTF8 and Umlauts

2009-05-04 Thread Duncan Coutts
On Mon, 2009-05-04 at 11:19 -0500, John Goerzen wrote: > Guenther Schmidt wrote: > > Hi John, > > > > thanks for taking the time. It actually is \252 that turned into > > something else because of my email client, damn the thing. > > OK, perhaps we have some confusion here. > > Are you saying t

Re: [Haskell-cafe] Question concerning Haskell Foundation

2009-05-09 Thread Duncan Coutts
On Thu, 2009-05-07 at 18:13 -0500, Vasili I. Galchin wrote: > sorry should read "With Haskell Platform" > > 1) Can we still publish/push up packages to Hackage? E.g. now I am > trying to get Graham Lyle's Swish (semantic web package) cabalized. > > 2) Will Hackage go away? Hackage and th

Re: [Haskell-cafe] cabal parse problems

2009-05-09 Thread Duncan Coutts
On Wed, 2009-05-06 at 19:37 -0500, Vasili I. Galchin wrote: > are them some CLI switches I can enable in order to better determine > what "parse error" is?? The problem is that we're using a parser that has no support for producing parse errors (Text.ParserCombinators.ReadP). The only reason we're

Re: [Haskell-cafe] runhaskell CLI parameters

2009-05-09 Thread Duncan Coutts
On Tue, 2009-05-05 at 22:39 -0500, Vasili I. Galchin wrote: > Hello, > > I have forgotten the runhaskell CLI parameters ... sigh. In > particular I want to a "local" build of a set of of package: > > runhaskell Setup.hs configure --user??? > > I just did a "runhaskell -?" which did

Re: [Haskell-cafe] Removing mtl from the Haskell Platform

2009-05-13 Thread Duncan Coutts
On Wed, 2009-05-13 at 12:01 +0100, Neil Brown wrote: > Sittampalam, Ganesh wrote: > > We've discussed replacing it with transformers+monads-fd+an mtl > > compatiblity layer on librar...@. Ross and I plan to propose doing this > > for the second release of the platform - it's not fair to disrupt the

Re: The HP and PackedString (was: Re: [Haskell-cafe] Removing mtl from the Haskell Platform)

2009-05-13 Thread Duncan Coutts
On Wed, 2009-05-13 at 10:24 +0200, Ketil Malde wrote: > Not of the same gravity as mtl, but I was a bit surprised to see that > PackedString was included, in spite of it being marked as deprecated > on Hackage. TemplateHaskell still uses it. There was not a lot we could do for the first release. S

Re: Re[2]: The HP and PackedString (was: Re: [Haskell-cafe] Removing mtl from the Haskell Platform)

2009-05-13 Thread Duncan Coutts
On Wed, 2009-05-13 at 15:37 +0400, Bulat Ziganshin wrote: > Hello Duncan, > > Wednesday, May 13, 2009, 3:33:13 PM, you wrote: > > > I think it should remain deprecated and we should work on the > > replacement so that TH can switch its dependency. > > TH isn't high-performance package and i thin

Re: [Haskell-cafe] Structural sharing in haskell data structures?

2009-05-14 Thread Duncan Coutts
On Thu, 2009-05-14 at 09:03 -0400, Jan-Willem Maessen wrote: > Hmm, I think neither of the data structures you name actually support > both O(lg n) indexing and O(lg n) cons or append. That said, your > point is well taken, so let's instead state it as a challenge: > > Can you, oh Haskellers

Re: [Haskell-cafe] Data.Binary and little endian encoding

2009-05-15 Thread Duncan Coutts
On Thu, 2009-05-14 at 20:46 -0700, David Leimbach wrote: > > > On Thu, May 14, 2009 at 8:40 PM, Don Stewart wrote: > leimy2k: > > > I actually need little endian encoding... wondering if > anyone else hit this > > with Data.Binary. (because I'm working wi

Re: [Haskell-cafe] Cabal, Time & GHC 6.10.2

2009-05-17 Thread Duncan Coutts
On Sun, 2009-05-17 at 09:17 +0100, Dominic Steinitz wrote: > I get > > > d...@linux-6ofq:~/asn1> runghc Setup.hs configure > > Configuring PER-0.0.20... > > Setup.hs: At least the following dependencies are missing: > > time -any && -any > > but I have time > > > d...@linux-6ofq:~/asn1> ghc-pkg

Re: [Haskell-cafe] ghc ./configure stalls on docbook DTD

2009-05-21 Thread Duncan Coutts
On Mon, 2009-05-18 at 12:09 +0100, Simon Marlow wrote: > I have the following complaint from Roman in my inbox, which I think is > about the same thing: > > > one big nuisance when building ghc is that configure tries to connect > > to the internet. The culprit is the FP_GEN_DOCBOOK_XML macro

Re: [Haskell-cafe] Introducing Instances in GHC point releases

2009-05-21 Thread Duncan Coutts
On Thu, 2009-05-21 at 15:22 -0700, Alexander Dunlap wrote: > Since those types come out of the time library, and that library's > version *has* been bumped (I assume), couldn't you use Cabal to > condition on the version of the time library to determine whether or > not to have CPP set a -DTYPEABLE

Re: [Haskell-cafe] Introducing Instances in GHC point releases

2009-05-22 Thread Duncan Coutts
On Thu, 2009-05-21 at 21:30 -0500, John Goerzen wrote: > Duncan Coutts wrote: > > On Thu, 2009-05-21 at 15:22 -0700, Alexander Dunlap wrote: > >> Since those types come out of the time library, and that library's > >> version *has* been bumped (I assume), couldn&#

Re: [Haskell-cafe] A problem with par and modules boundaries...

2009-05-23 Thread Duncan Coutts
On Fri, 2009-05-22 at 05:30 -0700, Don Stewart wrote: > Answer recorded at: > > http://haskell.org/haskellwiki/Performance/Parallel I have to complain, this answer doesn't explain anything. This isn't like straight-line performance, there's no reason as far as I can see that inlining should c

Re: [Haskell-cafe] A problem with par and modules boundaries...

2009-05-23 Thread Duncan Coutts
On Fri, 2009-05-22 at 16:34 +0200, Daniel Fischer wrote: > > That's great, thank you. I am still baffled, though. I'm baffled too! I don't see the same behaviour at all (see the other email). > > Must every exported function that uses `par' be INLINEd? Does every > > exported caller of such

Re: Re: [Haskell-cafe] Re: A problem with par and modules boundaries...

2009-05-23 Thread Duncan Coutts
On Sat, 2009-05-23 at 13:31 -0400, Mario Blažević wrote: > >>> You could probably see exactly what's happening in > >>> more detail by going through the Core output. > >> > >> Thank you, this advice helped. The Core output indicates > >> that function `test' evaluates the arguments to > >> `parall

Re: [Haskell-cafe] Cabal, Time & GHC 6.10.2

2009-05-24 Thread Duncan Coutts
On Sun, 2009-05-24 at 12:04 +0100, Dominic Steinitz wrote: > > I'll add this issue to the FAQ, it come up enough. If anyone else > > reading would like to eliminate this FAQ, then implementing this ticket > > is the answer: > > > > suggest use of --user if configure fails with missing dep

Re: [Haskell-cafe] hackage version scheme survey

2009-05-24 Thread Duncan Coutts
On Sat, 2009-05-23 at 19:57 -0500, br...@lorf.org wrote: > On Saturday, 23.05.09 at 17:26, Don Stewart wrote: > > http://haskell.org/haskellwiki/Package_versioning_policy ? > > That helps a lot. I should have found that. But putting the policy on a > web page doesn't seem to be working; there are

Re: Re: Re: [Haskell-cafe] Re: A problem with par and modules boundaries...

2009-05-24 Thread Duncan Coutts
On Sat, 2009-05-23 at 20:42 -0400, Mario Blažević wrote: > On Sat 23/05/09 2:51 PM , Duncan Coutts duncan.cou...@worc.ox.ac.uk sent: > > On Sat, 2009-05-23 at 13:31 -0400, Mario Blažević wrote: > > ... > >> So the function is not strict, and I don't understand >

Re: Re: Re: Re: [Haskell-cafe] Re: A problem with par and modules boundaries...

2009-05-24 Thread Duncan Coutts
On Sun, 2009-05-24 at 12:48 -0400, Mario Blažević wrote: > > How about diffing the whole core output (and using -ddump-simpl). If > > there's a performance difference then there must be a difference in the > > core code too. > I can't exactly use diff because the generated identifier names are no

Re: [Haskell-cafe] Introducing Instances in GHC point releases

2009-05-25 Thread Duncan Coutts
On Sun, 2009-05-24 at 16:36 +0200, Ketil Malde wrote: > Duncan Coutts writes: > > > The PVP says: > > > 1. If any entity was removed, or the types of any entities > > or the definitions of datatypes or classes were changed, > >

Re: [Haskell-cafe] Re: Parsing command lines

2009-05-25 Thread Duncan Coutts
On Mon, 2009-05-25 at 17:45 +0200, Patai Gergely wrote: > > There getArgs and getProgName in System module. If you want > > parse this parameters there is System.Console.GetOpt. > Those will only tell me how my program was called. I want to work with > command lines as data within my program, which

Re: [Haskell-cafe] A problem with par and modules boundaries...

2009-05-26 Thread Duncan Coutts
On Mon, 2009-05-25 at 09:40 -0400, Mario Blazevic wrote: > >> $diff main.simpl imported.simpl > >> ... > >> 223c232 > >> < a_s1rs [ALWAYS Just L] :: GHC.Integer.Internals.Integer > >> --- > >>> a_s1sV [ALWAYS Just S] :: GHC.Integer.Internals.Integer > >> ... > > > > Good find! > > > >

Re: [Haskell-cafe] platform/cabal problems

2009-05-27 Thread Duncan Coutts
On Wed, 2009-05-27 at 22:43 +0200, Johannes Waldmann wrote: > Hi all. > > I've written some Haskell program, > and I wanted to give it to a friend, in source form, > so he can run and modify it, and learn some Haskell > while doing so. I was using some cabalized extra packages > but hey, this look

Re: [Haskell-cafe] Data.Binary and little endian encoding

2009-05-28 Thread Duncan Coutts
On Thu, 2009-05-28 at 12:08 -0400, John Van Enk wrote: > > I'm trying to implement the protocol, so that I can implement > other things on top of that. > > I'm also trying to figure out how bad/good Haskell Binary IO > really is that it's been a

[Haskell-cafe] Notice for package authors

2009-06-03 Thread Duncan Coutts
Package authors, We are about to add an additional quality check in the Hackage upload process that will affect many packages. Hackage will require an upper bound on the version of the base package and reject packages that omit it. Lots of packages currently specify: build-depends: base

Re: [Haskell-cafe] Notice for package authors

2009-06-03 Thread Duncan Coutts
On Wed, 2009-06-03 at 11:36 +0100, Duncan Coutts wrote: > Package authors, > > We are about to add an additional quality check in the Hackage upload > process that will affect many packages. Hackage will require an upper > bound on the version of the base package and reject pac

Re: [Haskell-cafe] GHCI & Curl under Windows

2009-06-04 Thread Duncan Coutts
On Thu, 2009-06-04 at 12:57 +1000, John Lask wrote: > The issue you are experiencing is the result of ghci not using import > libraries to resolve external symbols. Just a bit of explanation for > reference, which will also help you understand the solution to your problem. [..] > The long and the

Re: [Haskell-cafe] Slow documentation generation on Hackage

2009-06-08 Thread Duncan Coutts
On Mon, 2009-06-08 at 11:24 +0200, Ketil Malde wrote: > "Niemeijer, R.A." writes: > > > If that is the main concern, would the following not work? > > [...] > > > Result: immediate documentation for every contributor with good > > intentions Having the server generate docs itself would be

Re: [Haskell-cafe] nubBy seems broken in recent GHCs

2009-06-10 Thread Duncan Coutts
On Sat, 2009-06-06 at 18:39 +0200, Bertram Felgenhauer wrote: > Interesting. This was changed in response to > > http://hackage.haskell.org/trac/ghc/ticket/2528 > > | Tue Sep 2 11:29:50 CEST 2008 Simon Marlow > | * #2528: reverse the order of args to (==) in nubBy to match nub > | Thi

Re: [Haskell-cafe] Re: a cool paper (.pdf) on Cabal?

2009-06-11 Thread Duncan Coutts
ols > >by Isaac Jones, Simon Peyton Jones, Simon Marlow, Malcolm Wallace, and > >Ross Patterson > >http://www.haskell.org/cabal/proposal/ > > Sorry, I forgot that you had specified a .pdf paper in the title. There's a pdf of the same: http://www.haskell.org/cabal/proposal/pkg-

RE: [Haskell-cafe] ghci and applicative

2009-06-12 Thread Duncan Coutts
On Fri, 2009-06-12 at 15:00 +0100, Paul Keir wrote: > Thanks Ryan, I'm slowly becoming aware of the effects of Monomorphism. > I'll look > again at Neil Mitchell's blog post. > > I guess it's the same thing when I try: > > > let a = 1 > > a + 1.0 > > I'm taking the "mono" as a clue that the type

Re: [Haskell-cafe] install problems ...

2009-06-14 Thread Duncan Coutts
On Thu, 2009-06-11 at 23:50 -0500, Vasili I. Galchin wrote: > Hello, > > As I have said before I a, "cabalizing" Swish (a semantic web > toolkit). I have it built and have run most of the original author's > tests by and they pass. There are numerous warnings which seem to be > either lack of a

Re: [Haskell-cafe] [cabal] How to deal with build-depency that not under cabal's control?

2009-06-15 Thread Duncan Coutts
http://haskell.org/cabal/FAQ.html#runghc-setup-complains-of-missing-packages On Mon, 2009-06-15 at 10:30 +0300, Roman Cheplyaka wrote: > I'm CC:ing Duncan, probably he can help. > > * Magicloud Magiclouds [2009-06-15 > 10:01:03+0800] > > # ghc-pkg list gtk > > /var/lib/ghc-6.10.3/./package.con

Re: [Haskell-cafe] Re: Unicode workaround for getDirectoryContents under Windows?

2009-06-18 Thread Duncan Coutts
On Thu, 2009-06-18 at 04:47 +0300, Yitzchak Gale wrote: > I wrote: > >> OK, would you like me to reflect this discussion in tickets? > >> Let's see, so far we have #3300, I don't see anything else. > >> > >> Do you want two tickets, one each for WIndows/Unix? Or > >> four, separating the FilePath a

Re: [Haskell-cafe] packages on Hackage?

2009-06-21 Thread Duncan Coutts
On Thu, 2009-06-18 at 23:26 -0500, Vasili I. Galchin wrote: > Hello, > > Haskell packages on Hackage can be hosted anywhere, yes? Yes. > If a Haskell package is hosted on Hackage, how often is it > backed up? It's not especially wise to rely on Hackage for your backup needs since it

Re: [Haskell-cafe] How to determine if a FilePath is a directory name or regular file?

2009-06-22 Thread Duncan Coutts
On Mon, 2009-06-22 at 08:53 +0200, Deniz Dogan wrote: > 2009/6/22 Colin Paul Adams : > >> "Judah" == Judah Jacobson writes: > > > >Judah> On Sun, Jun 21, 2009 at 11:12 PM, Colin Paul > >Judah> Adams wrote: > >>> I've been hoogling like bad to try to determine if a function > >>

Re: [Haskell-cafe] Documentation on hackage

2009-06-22 Thread Duncan Coutts
On Mon, 2009-06-15 at 06:49 -0700, Don Stewart wrote: > si: > > Dear Haskellers, > > > > who needs this kind of documentation? > > > > http://hackage.haskell.org/packages/archive/tfp/0.2/doc/html/Types-Data-Num-Decimal-Literals.html > > > > isn't this a kind of spam? > > > > Seems like a good

Re: [Haskell-cafe] How to determine if a FilePath is a directory name or regular file?

2009-06-23 Thread Duncan Coutts
On Tue, 2009-06-23 at 09:31 -0400, Brandon S. Allbery KF8NH wrote: > On Jun 22, 2009, at 07:37 , Duncan Coutts wrote: > > One explanation is that isBlah asks "is this thing a blah", but we're > > not asking that because there is an indirection via the filepath. &

Re: [Haskell-cafe] Re: FFI and heap memory usage limit

2009-06-29 Thread Duncan Coutts
On Fri, 2009-06-26 at 13:00 +0100, Simon Marlow wrote: > Maybe bzlib allocates using malloc()? That would not be tracked by > GHC's memory management, but could cause OOM. Yes it does. > Another problem is that if you ask for a large amount of memory in one > go, the request is usually honour

Re: [Haskell-cafe] Re: Could FFI support pass-by-value of structs?

2009-06-29 Thread Duncan Coutts
On Wed, 2009-06-24 at 18:48 -0700, John Meacham wrote: > On Wed, Jun 24, 2009 at 10:23:29AM -0300, Maurí­cio wrote: > > However, isn't just knowing the size and alignment enough to > > write a generic struct handler that, by using the appropriate > > calling convention, is going to work with any st

Re: Re[2]: [Haskell-cafe] Re: Could FFI support pass-by-value of structs?

2009-06-29 Thread Duncan Coutts
On Tue, 2009-06-30 at 00:45 +0400, Bulat Ziganshin wrote: > Hello Duncan, > > Tuesday, June 30, 2009, 12:03:15 AM, you wrote: > > > struct ex { > > int x; > > int y; > > int z; > > }; > > > ex example_functions (ex p) > > afaik, there is C ABI, that defines how to pass and return

Re: [Haskell-cafe] Monoid wants a (++) equivalent

2009-07-01 Thread Duncan Coutts
On Tue, 2009-06-30 at 18:31 -0700, John Meacham wrote: > On Tue, Jun 30, 2009 at 08:02:48PM -0400, Daniel Peebles wrote: > > But we don't want to imply it's commutative either. Having something > > "bidirectional" like <> or <+> feels more commutative than associative > > to me. Of course in Text.

Re: Re[2]: [Haskell-cafe] Re: Could FFI support pass-by-value of structs?

2009-07-01 Thread Duncan Coutts
On Tue, 2009-06-30 at 18:59 -0700, John Meacham wrote: > On Tue, Jun 30, 2009 at 01:18:32AM +0100, Duncan Coutts wrote: > > On IA32 structs/unions passed as parameters go by value on the stack. > > For structs/unions as function results, they are stored into a > > caller-

Re: Re[4]: [Haskell-cafe] Re: Could FFI support pass-by-value of structs?

2009-07-01 Thread Duncan Coutts
On Thu, 2009-07-02 at 01:26 +0400, Bulat Ziganshin wrote: > Hello Duncan, > > Tuesday, June 30, 2009, 4:18:32 AM, you wrote: > > > Actually passing structs and unions as arguments or function results is > > specified by the C ABI. See for example the IA32 ABI: > > > http://www.caldera.com/develo

  1   2   3   4   5   6   7   8   9   10   >