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 duncan.cou...@worc.ox.ac.uk wrote: On Wed, 2009-04-22 at 11:33 +0200, david48 wrote: The default should at least be consistent among cabal install, runghc

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 duncan.cou...@worc.ox.ac.uk wrote: On Wed, 2009-04-22 at 12:21 +0200, david48 wrote: Lines starting with -- are comments. You need to uncomment

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

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

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 Yes,

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 overlap

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 the

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 the result, at

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 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 downloading

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 kscr...@gmail.com 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 the

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 reference to a ticket

Re: [Haskell-cafe] Announcement: Beta of Leksah IDE available

2009-04-02 Thread Duncan Coutts
On Wed, 2009-04-01 at 22:13 +0200, David Waern wrote: 2009/4/1 jutaro j...@arcor.de: I guess you mean the dialog which should help leksah to find sources for installed packages. It needs this so you can go to all the definitions in the base packages ... This is very handy if it works. Look

Re: [Haskell-cafe] QuesoGLC / cabal extra-libraries not used?

2009-04-01 Thread Duncan Coutts
On Wed, 2009-04-01 at 00:32 +0200, Peter Verswyvelen wrote: I'm busy writing my first library for Hackage - a wrapper for QuesoGLC, yet another OpenGL font renderer using Freetype2. So if someone else is already doing this, stop doing so :-) I've succesfully build the libquesoglc.a library

Re: [Haskell-cafe] Use unsafePerformIO to catch Exception?

2009-03-27 Thread Duncan Coutts
On Fri, 2009-03-27 at 12:26 +0100, Henning Thielemann wrote: On Thu, 26 Mar 2009, wren ng thornton wrote: Functions like uncons and viewL are nicer (because they're safe), but they can have overhead because they're unnecessarily complete (e.g. the Maybe wrapper can be avoided if we know

Re: [Haskell-cafe] Re: a cabal package with both a library and executable programs

2009-03-25 Thread Duncan Coutts
On Wed, 2009-03-25 at 15:19 +0100, Achim Schneider wrote: Manlio Perillo manlio_peri...@libero.it wrote: Should I fill a feature request ticket, or this is how it is supposed to work? I would like to be able to do that, too. I also don't want cabal to recompile a thousand modules just

Re: [Haskell-cafe] Use unsafePerformIO to catch Exception?

2009-03-25 Thread Duncan Coutts
On Wed, 2009-03-25 at 18:14 +0100, Benja Fallenstein wrote: On Wed, Mar 25, 2009 at 3:52 AM, Duncan Coutts Of course your tryArith only tests for certain kinds of _|_ value, but in principle the problem is the same. That's not *quite* how the semantics of Haskell exceptions are defined

Re: [Haskell-cafe] Use unsafePerformIO to catch Exception?

2009-03-24 Thread Duncan Coutts
On Mon, 2009-03-23 at 08:11 -0400, Xiao-Yong Jin wrote: Hi, I just feel it is not comfortable to deal with exceptions only within IO monad, so I defined tryArith :: a - Either ArithException a tryArith = unsafePerformIO . try . evaluate You must not do this. It breaks the semantics of

Re: [Haskell-cafe] Re: Completely confused by cabal

2009-03-22 Thread Duncan Coutts
On Sun, 2009-03-22 at 11:51 +, Colin Paul Adams wrote: Achim == Achim Schneider bars...@web.de writes: Achim Colin Paul Adams co...@colina.demon.co.uk wrote: So why doesn't it find packages then, when they are installed? Achim I've got no idea, what exactly are you

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-21 Thread Duncan Coutts
On Fri, 2009-03-20 at 14:10 -0400, Jeff Heard wrote: cabal-install works for me. The one thing that would be REALLY REALLY nice (and I'm cc-ing Duncan on this) is a .dmg for Gtk2Hs on Mac OS X. I'm sorry I can't directly help with this. I have no access to any hardware running OS X. I presume

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-21 Thread Duncan Coutts
On Fri, 2009-03-20 at 15:22 -0400, Jeff Heard wrote: As this continues to build, I guess the issue for me, and I'm willing to help with it, is trying to figure out how to redistribute programs written with gtk2hs. on Windows, people can just install the gtk2hs libraries via the installer --

Re: [Haskell-cafe] Cabal properties with conditionals

2009-03-21 Thread Duncan Coutts
On Sat, 2009-03-21 at 14:26 +0100, Manlio Perillo wrote: Hi. Assuming this configuration fragment: library xxx cc-options: -Wall if flag(HAVE_URANDOM) cc-options:-DHAVE_URANDOM In case the HAVE_URANDOM flag is defined, what will be the value of the

[Haskell-cafe] New Cabal FAQ

2009-03-21 Thread Duncan Coutts
Hi all, I should have done this ages ago but there's now a Cabal FAQ on the Cabal website: http://haskell.org/cabal/FAQ.html It's not linked in yet, I'm looking for feedback and patches. The Cabal website is now maintained in darcs so it's easy to send in contributions: darcs get

Re: [Haskell-cafe] Cabal properties with conditionals

2009-03-21 Thread Duncan Coutts
On Sat, 2009-03-21 at 23:05 +0100, Manlio Perillo wrote: P.S: I tried to send an email to cabal-devel some days ago, with a feature I would like to see in Cabal. But the mail was never posted to the mailing list. Is that list moderated? It's subscriber only, like all the haskell.org mailing

Re: [Haskell-cafe] Cabal properties with conditionals

2009-03-21 Thread Duncan Coutts
On Sun, 2009-03-22 at 01:03 +0100, Manlio Perillo wrote: Duncan Coutts ha scritto: On Sat, 2009-03-21 at 23:05 +0100, Manlio Perillo wrote: P.S: I tried to send an email to cabal-devel some days ago, with a feature I would like to see in Cabal. But the mail was never posted

Re: [Haskell-cafe] server directory layout for cabal-install?

2009-03-20 Thread Duncan Coutts
On Thu, 2009-03-19 at 11:50 +0100, Johannes Waldmann wrote: Thanks. Now the 00-index.tar.gz works. When studying the access log of my web server, I found that the cabal client (cabal-install/0.6.0) does not want $pkg/$ver/$pkg-$ver.tar.gz but uses packages/$pkg-$ver/tarball instead (yes,

Re: [Haskell-cafe] Using cabal to build an exportable library?

2009-03-20 Thread Duncan Coutts
On Fri, 2008-12-19 at 12:53 -0800, Justin Bailey wrote: I've been following this instructions at http://www.haskell.org/haskellwiki/Calling_Haskell_from_C to build a Haskell library which I can call from a C program. I'd like to use cabal to do the build in the future. As I'm sure you

Re: [Haskell-cafe] Checking in packages to Hackage early in development cycle?

2009-03-20 Thread Duncan Coutts
On Thu, 2009-03-19 at 12:56 -0400, Brandon S. Allbery KF8NH wrote: On 2009 Mar 19, at 12:39, Brandon S. Allbery KF8NH wrote: On 2009 Mar 19, at 12:30, Colin Paul Adams wrote: Max == Max Rabkin max.rab...@gmail.com writes: Max On Thu, Mar 19, 2009 at 4:41 PM, Manlio Perillo Max

Re: [Haskell-cafe] Checking in packages to Hackage early in development cycle?

2009-03-20 Thread Duncan Coutts
On Fri, 2009-03-20 at 10:39 +, Colin Paul Adams wrote: Duncan We call it the Package versioning policy (PVP) Duncan http://www.haskell.org/haskellwiki/Package_versioning_policy Duncan Package authors are encouraged but not required to follow Duncan it. In the not too

Re: [Haskell-cafe] server directory layout for cabal-install?

2009-03-19 Thread Duncan Coutts
On Wed, 2009-03-18 at 22:24 +0100, Johannes Waldmann wrote: Hello. I wonder what is the required layout of directories and files on a server that supplies packages for cabal-install. I figure 00-index.tar.gz contains the *.cabal files. Right. The directory layout within the index is

Re: [Haskell-cafe] encoding for least fixpoint

2009-03-18 Thread Duncan Coutts
On Wed, 2009-03-18 at 03:22 -0400, Dan Doel wrote: On Tuesday 17 March 2009 7:36:21 pm ben wrote: I am trying to understand the definition of (co)inductive types in Haskell. After reading the beginning of Vene's thesis [1] I was happy, because I understood the definition of the least

Re: [Haskell-cafe] What unsafeInterleaveIO is unsafe

2009-03-16 Thread Duncan Coutts
On Mon, 2009-03-16 at 14:17 -0700, Jonathan Cast wrote: On Mon, 2009-03-16 at 22:12 +0100, Henning Thielemann wrote: On Sun, 15 Mar 2009, Claus Reinke wrote: import Data.IORef import Control.Exception main = do r - newIORef 0 let v = undefined handle (\(ErrorCall

Re: [Haskell-cafe] I can't install hs-plugins beceause of Linker.h

2009-03-15 Thread Duncan Coutts
On Sun, 2009-03-15 at 11:38 +0600, Yuri Kashnikoff wrote: Hi! I was trying to install hs-plugins both from sources $./Setup.lhs ... and with $cabal fetchcabal install and both failed. It always reports that Linker.h is missing. Setup.lhs: Missing dependency on a foreign library: * Missing

Re: [Haskell-cafe] Problem with cabal-install where package requires* mutually exclusive versions of another package

2009-03-14 Thread Duncan Coutts
On Sat, 2009-03-14 at 19:10 +1100, Mark Wassell wrote: I am trying install a package using cabal-install however the package requies an older version of QuickCheck and one of the required packages requires the latest version: $ cabal fetch Reactive Resolving dependencies... cabal.exe:

Re: Re[2]: [Haskell-cafe] bytestring vs. uvector

2009-03-14 Thread Duncan Coutts
On Tue, 2009-03-10 at 23:55 +0300, Bulat Ziganshin wrote: starting with 6.6, ForeignArray access is no-op, so we can just use obvious Ptr operations (via Storable class) to get unboxed arrays fast access. so, no more need for those special ByteArray# access operations but Array library

Re: Re[2]: [Haskell-cafe] bytestring vs. uvector

2009-03-14 Thread Duncan Coutts
On Fri, 2009-03-13 at 20:30 +0300, Bulat Ziganshin wrote: Hello Don, Friday, March 13, 2009, 8:08:57 PM, you wrote: What is the reason why you have decided to use unpinned arrays (ByteArray#) instead of pinned arrays (Foreign.Ptr)? They prevent heap fragmentation (and in general are

Re: [Haskell-cafe] bytestring vs. uvector

2009-03-14 Thread Duncan Coutts
On Mon, 2009-03-09 at 18:29 -0700, Alexander Dunlap wrote: Thanks for all of the responses! So let me see if my summary is accurate here: - ByteString is for just that: strings of bytes, generally read off of a disk. The Char8 version just interprets the Word8s as Chars but doesn't do

Re: [Haskell-cafe] Problem with cabal-install where package requires* mutually exclusive versions of another package

2009-03-14 Thread Duncan Coutts
On Sat, 2009-03-14 at 10:02 -0600, Denis Bueno wrote: On Sat, Mar 14, 2009 at 09:40, Duncan Coutts duncan.cou...@worc.ox.ac.uk wrote: A medium term solution here should involve letting packages specify that some of their dependencies are private, ie nothing is re-exported and thus

Re: [Haskell-cafe] where does ghc specify ar options

2009-03-10 Thread Duncan Coutts
On Mon, 2009-03-09 at 21:08 -0400, Alexy Khrabrov wrote: Duncan -- On Mar 9, 2009, at 8:14 PM, Duncan Coutts wrote: BTW, how did you get the package installed in that location? Did it involve copying into a temp dir and copying again? I believe that on OSX, copying a .a file breaks

Re: [Haskell-cafe] Mystified by Cabal

2009-03-10 Thread Duncan Coutts
On Mon, 2009-03-09 at 17:56 -0700, John Meacham wrote: On Sun, Mar 08, 2009 at 01:13:33PM +0100, Svein Ove Aas wrote: On Sun, Mar 8, 2009 at 12:32 PM, Duncan Coutts duncan.cou...@worc.ox.ac.uk wrote: Note also that the list of licenses mkcabal offers is wrong. You can get the list from

Re: [Haskell-cafe] Distributing Linux binaries

2009-03-09 Thread Duncan Coutts
On Mon, 2009-03-09 at 13:26 -0700, Don Stewart wrote: lists: Hi folks, I've got an application to release. I'm releasing the source, but I also wanted to release binary versions for people that don't have GHC. I developed on Windows, so making a Windows executable was simple. I also

Re: [Haskell-cafe] where does ghc specify ar options

2009-03-09 Thread Duncan Coutts
On Sun, 2009-03-08 at 22:44 -0500, Alexy Khrabrov wrote: When bootstrapping cabal-install 0.6.2 on Mac OSX Leopard (Intel), I get a problem when linking: Linking dist/build/cabal/cabal ... ld: in

Re: [Haskell-cafe] cabal-install 0.6.2 does not bootstrap with ghc-6.10.1 debian distribution

2009-03-08 Thread Duncan Coutts
On Sat, 2009-03-07 at 17:51 -0800, Ahn, Ki Yung wrote: Dear Haskellers and especially who are working on cabal-install and debian packaging, I sometimes clean up .ghc and .cabal in my home directory to start from scratch because of dependency loopholes (cabal-install does not have remove

Re: [Haskell-cafe] Mystified by Cabal

2009-03-08 Thread Duncan Coutts
On Sat, 2009-03-07 at 17:30 +, Colin Paul Adams wrote: Svein == Svein Ove Aas svein@aas.no writes: Preprocessing library game-tree-1.0.0.0... Building game-tree-1.0.0.0... Data/Tree/Game/Negascout.hs:31:0: Unrecognised pragma [1 of 2] Compiling

Re: [Haskell-cafe] Mystified by Cabal

2009-03-08 Thread Duncan Coutts
On Sun, 2009-03-08 at 13:13 +0100, Svein Ove Aas wrote: On Sun, Mar 8, 2009 at 12:32 PM, Duncan Coutts duncan.cou...@worc.ox.ac.uk wrote: Note also that the list of licenses mkcabal offers is wrong. You can get the list from the Cabal lib itself so there is no need to maintain the list

Re: [Haskell-cafe] Cabal and package changelog

2009-03-08 Thread Duncan Coutts
On Sun, 2009-03-08 at 10:00 -0400, Gwern Branwen wrote: On Sun, Mar 8, 2009 at 7:13 AM, Manlio Perillo manlio_peri...@libero.it wrote: Hi. The Cabal package description includes a property `license-file`. This property may be used by Hackage to provide a link to the license file.

Re: [Haskell-cafe] cabal-install 0.6.2 does not bootstrap with ghc-6.10.1 debian distribution

2009-03-08 Thread Duncan Coutts
On Sun, 2009-03-08 at 15:33 -0700, Ahn, Ki Yung wrote: I am using Debian unstable. The version of GHC debian package is 6.10.1+dfsg1-13, and installed Haskell libraries (debian packages) are: kya...@kyavaio:~$ ghc-pkg list /usr/lib/ghc-6.10.1/./package.conf: packedstring-0.1.0.1,

Re: [Haskell-cafe] Re: [Haskell] Lazy IO breaks purity

2009-03-06 Thread Duncan Coutts
On Thu, 2009-03-05 at 13:08 +, Simon Marlow wrote: Lennart Augustsson wrote: I don't see any breaking of referential transparence in your code. Every time you do an IO operation the result is basically non-deterministic since you are talking to the outside world. You're assuming the

[Haskell-cafe] Re: [Haskell] string type class

2009-03-06 Thread Duncan Coutts
On Fri, 2009-03-06 at 19:16 +, Chris Kuklewicz wrote: Matthew Pocock wrote: It seems every time I look at hackage there is yet another stringy datatype. For lots of apps, the particular stringy datatype you use matters for performance but not algorithmic reasons. Perhaps this is a

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

2009-03-05 Thread Duncan Coutts
On Thu, 2009-03-05 at 23:52 +0100, Henning Thielemann wrote: On Wed, 4 Mar 2009, John Lato wrote: John A. De Goes schrieb: Elsewhere, laziness can be a real boon, so I don't understand your question, Why have laziness in Haskell at all? As I have written, many libaries process their

Re: [Haskell-cafe] possible memory leak in uvector 0.1.0.3

2009-03-03 Thread Duncan Coutts
On Tue, 2009-03-03 at 02:12 +0100, Manlio Perillo wrote: Hi. In the help optimizing memory usage for a program I discovered some interesting things: 1) Using lazy ByteStrings to read files it not a good choice, since the garbage collector is not able to proper garbage cleanup.

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

2009-03-02 Thread Duncan Coutts
On Mon, 2009-03-02 at 11:50 +, Bayley, Alistair wrote: 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

[Haskell-cafe] ANNOUNCE: The Industrial Haskell Group

2009-03-02 Thread Duncan Coutts
If your company is interested in joining then please e-mail i...@industry.haskell.org -- Duncan Coutts, Haskell Consultant Well-Typed LLP, http://www.well-typed.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

Re: [Haskell-cafe] ANNOUNCE: tar 0.3.0.0

2009-03-02 Thread Duncan Coutts
On Mon, 2009-03-02 at 08:20 -0600, John Goerzen wrote: Duncan Coutts wrote: All, I'm pleased to announce a major new release of the tar package for handling .tar archive files. Very nice! I'm curious -- what specific variants of the tar format can it read and write? It can read

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

2009-03-02 Thread Duncan Coutts
On Mon, 2009-03-02 at 12:50 +, Bayley, Alistair wrote: 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

Re: [Haskell-cafe] Cabal and `main-is` field

2009-03-02 Thread Duncan Coutts
On Mon, 2009-03-02 at 07:15 -0700, Denis Bueno wrote: On Sun, Mar 1, 2009 at 11:56, Duncan Coutts duncan.cou...@worc.ox.ac.uk wrote: That's because it's a bug, not a feature. :-) Be careful of using this feature as we might fix it. I've wished for this feature, and have Cabal files

Re: [Haskell-cafe] Can't install mkcabal because of pcre-lite

2009-03-01 Thread Duncan Coutts
On Sun, 2009-03-01 at 09:08 +, Colin Paul Adams wrote: Colin == Colin Paul Adams co...@colina.demon.co.uk writes: Colin library: * Missing C library: pcre This problem can usually Colin be solved by installing the system package that provides Colin this library (you may need

[Haskell-cafe] ANNOUNCE: tar 0.3.0.0

2009-03-01 Thread Duncan Coutts
All, I'm pleased to announce a major new release of the tar package for handling .tar archive files. http://hackage.haskell.org/cgi-bin/hackage-scripts/package/tar This release has a completely new and much improved API. See the hackage page for the API documentation. There are high level all

Re: [Haskell-cafe] Cabal and `main-is` field

2009-03-01 Thread Duncan Coutts
On Sun, 2009-03-01 at 18:10 +0100, Manlio Perillo wrote: Gwern Branwen ha scritto: [...] You can hoist the common build-depends out of the executable stanzas. ie. from xmonad-utils.cabal: build-depends: base4, X11=1.3, ghc=6.8, unix, random=1.0 ... executable:

Re: [Haskell-cafe] Re: Hidden module?

2009-03-01 Thread Duncan Coutts
On Sun, 2009-03-01 at 13:08 -0800, John Meacham wrote: On Fri, Feb 27, 2009 at 09:53:28PM +0100, Achim Schneider wrote: Cristiano Paris cristiano.pa...@gmail.com wrote: I had to append process and directory as dependencies but then it worked. How can I submit a patch to Hackage? Do I

Re: [Haskell-cafe] subscription problems for projects.haskell.org mailing list

2009-02-28 Thread Duncan Coutts
On Wed, 2009-02-25 at 17:05 +0100, Wolfgang Jeltsch wrote: Hello, I created a mailing list for Grapefruit on the Haskell Community Server (grapefr...@projects.haskell.org). If I try to subscribe to it, I receive a confirmation e-mail but my answers to this e-mail seem to get ignored. Does

Re: [Haskell-cafe] Re: Hidden module?

2009-02-28 Thread Duncan Coutts
On Fri, 2009-02-27 at 21:53 +0100, Achim Schneider wrote: Cristiano Paris cristiano.pa...@gmail.com wrote: I had to append process and directory as dependencies but then it worked. How can I submit a patch to Hackage? Do I have to contact the owner? In general, just try the maintainer

Re: [Haskell-cafe] Data.Binary, strict reading

2009-02-27 Thread Duncan Coutts
On Thu, 2009-02-26 at 09:17 +, Neil Mitchell wrote: I suggest you use withFile instead and decode from the Handle that gives you (via hGetContents) rather than decodeFile from the file name. That makes it much clearer. Of course you have to avoid doing lazy stuff, but that should be

Re: [Haskell-cafe] Cabal package bug?

2009-02-26 Thread Duncan Coutts
On Thu, 2009-02-26 at 08:00 +, jpa...@di.uminho.pt wrote: hello all, I've used cabal to install package haskell-src-1.0.1.3 under ghc 6.10.1; Apparently, it worked fine! However, function parseModule has been given the type: parseModule :: String - ParseResult

Re: [Haskell-cafe] popularity context with Cabal

2009-02-26 Thread Duncan Coutts
On Thu, 2009-02-26 at 00:56 -0500, Brandon S. Allbery KF8NH wrote: On 2009 Feb 25, at 18:06, Manlio Perillo wrote: Debian some time ago introduced the popularity context, to find the most installed/used packages: http://popcon.debian.org/ Is it possible to do something similar with

Re: [Haskell-cafe] base-4 + gtk2hs-0.10.0 licensing

2009-02-25 Thread Duncan Coutts
On Wed, 2009-02-25 at 14:22 +0300, Victor Nazarov wrote: I wonder what software licence I can use to release my application. I've developed some education tool with the following dependencies: % ghci Main.hs GHCi, version 6.10.1: http://www.haskell.org/ghc/ :? for help Loading package

Re: [Haskell-cafe] base-4 + gtk2hs-0.10.0 licensing

2009-02-25 Thread Duncan Coutts
On Wed, 2009-02-25 at 16:47 +0100, Wolfgang Jeltsch wrote: Am Mittwoch, 25. Februar 2009 14:33 schrieb Duncan Coutts: Note that some people will tell you that by a strict interpretation of the LGPL that statically linked Haskell libs under that license are a pain in the backside. When we

Re: [Haskell-cafe] Data.Binary, strict reading

2009-02-25 Thread Duncan Coutts
On Wed, 2009-02-25 at 17:15 +, Neil Mitchell wrote: Hi, I want to read a file using Data.Binary, and I want to read the file strictly - i.e. when I leave the read file I want to guarantee the handle is closed. The reason is that (possibly immediately after) I need to write to the file.

Re: [Haskell-cafe] Cabal: local documentation

2009-02-24 Thread Duncan Coutts
On Tue, 2009-02-24 at 17:42 +0100, Svein Ove Aas wrote: 2009/2/24 Felipe Lessa felipe.le...@gmail.com: Just pass '--enable-documentation' to 'cabal install'. On *nix they're generated at ~/.cabal/share/doc. Or edit ~/.cabal/config and set the documentation key to True However this does

Re: [Haskell-cafe] IntMap documentation error

2009-02-24 Thread Duncan Coutts
On Mon, 2009-02-23 at 17:22 -0600, Louis Wasserman wrote: In the documentation for Data.IntMap updateMin, a piece of example code both communicates incorrect intuition, and fails to even compile. updateMin :: (a - a) - IntMap a - IntMap a updateMin (\ _ - Nothing) (fromList [(5,a),

Re: Pickling a finite map (Binary + zlib) [was: [Haskell-cafe] Data.Binary poor read performance]

2009-02-23 Thread Duncan Coutts
On Mon, 2009-02-23 at 17:03 -0800, Don Stewart wrote: Here's a quick demo using Data.Binary directly. [...] $ time ./A dict +RTS -K20M 52848 done ./A dict +RTS -K20M 1.51s user 0.06s system 99% cpu 1.582 total Ok. So 1.5s to decode a 1.3M Map. There may be better ways

Re: [Haskell-cafe] pkgenv - disposable, isolated pkg environments

2009-02-22 Thread Duncan Coutts
On Sun, 2009-02-22 at 13:22 +0100, Paolo Losi wrote: To test it, download it from http://bitbucket.org/pao/pkgenv/raw/488bfe8e58dd/pkgenv chmod a+x and drop to an executable directory. Any feedback would be really appreciated. Is this useful at all? Are there better ways to reach the

[Haskell-cafe] Re: pkgenv - disposable, isolated pkg environments

2009-02-22 Thread Duncan Coutts
On Sun, 2009-02-22 at 18:38 +0100, Paolo Losi wrote: Duncan Coutts wrote: Would it be useful to have cabal-install check a env var for its config file? Definitely yes. This would allow dropping the dependency on bash aliasing and make porting to Windows fairly easy. Ok, I've filed

Re: [Haskell-cafe] Error installing pkg 'HDBC-sqlite3'

2009-02-20 Thread Duncan Coutts
On Fri, 2009-02-20 at 14:16 -0500, David wrote: I've encountered another problem while trying to install 'HDBC-sqlite3'. I did the install manually, instead of using Cabal, and during the build phase, received the following error message: D:\Apps\ghc\ghc-6.10.1\HDBC-sqlite3-2.1.0.0runghc

Re: [Haskell-cafe] Trying to install Cabal

2009-02-20 Thread Duncan Coutts
On Fri, 2009-02-20 at 09:19 -0500, David wrote: Hi! I've just installed ghc (v 6.10.1) for Windows, and it seems to be installed correctly, and now I'm trying to install Cabal (v1.6.0.2), but I'm getting the following error message (along with a lot of warnings about a deprecated

[Haskell-cafe] ANNOUNCE: Cabal-1.6.0.2 and cabal-install-0.6.2

2009-02-19 Thread Duncan Coutts
I'm pleased to announce point-releases of the Cabal library and the cabal-install command line tool. If you are already using cabal-install then you can upgrade both using: $ cabal update $ cabal install Cabal cabal-install New users you can get it from:

Re: [Haskell-cafe] Gtk2HS 0.10.0 Released

2009-02-17 Thread Duncan Coutts
On Tue, 2009-02-17 at 08:47 +, Simon Marlow wrote: Duncan Coutts wrote: Maybe. Dealing with linker scripts properly is probably rather tricky and we get it for free when we switch to shared libraries. I don't follow this last point - how does switching to shared libraries

Re: [Haskell-cafe] Does gtk2hs support VTE?

2009-02-17 Thread Duncan Coutts
On Tue, 2009-02-17 at 14:10 +0800, Magicloud Magiclouds wrote: Hi, I always see a file named vte something in doc folder, but I never see vte in reference or source. So I wonder if gtk2hs actually supports VTE. And I'd like to have that supporting I started on binding it once. I

Re: [Haskell-cafe] Functional GUIs again

2009-02-16 Thread Duncan Coutts
On Mon, 2009-02-16 at 20:30 +0100, Fraser Wilson wrote: You must have missed the bit about congenitally lazy :-) Username requested ... See http://hackage.haskell.org/packages/accounts.html All you need to do is email Ross and ask. Duncan ___

Re: [Haskell-cafe] createProcess shutting file handles

2009-02-15 Thread Duncan Coutts
On Sun, 2009-02-15 at 09:24 +, Neil Mitchell wrote: Hi What have I done wrong? Did createProcess close the handle, and is there a way round this? The docs for runProcess says: Any Handles passed to runProcess are placed immediately in the closed state. but

Re: [Haskell-cafe] Help with Menu item handlers in gtk2hs with glade

2009-02-15 Thread Duncan Coutts
On Sun, 2009-02-15 at 16:48 +0530, Lakshmi Narasimhan wrote: I designed a basic GUI with Menu bar and menu items in glade. I use the glade bindings in haskell to get the menu item using xmlGetWidget and castToMenuItem function. I set a *onActivateItem* handler for this menuitem. However

Re: [Haskell-cafe] createProcess shutting file handles

2009-02-15 Thread Duncan Coutts
On Sun, 2009-02-15 at 11:06 +, Duncan Coutts wrote: On Sun, 2009-02-15 at 09:24 +, Neil Mitchell wrote: Hi What have I done wrong? Did createProcess close the handle, and is there a way round this? The docs for runProcess says: Any Handles passed

Re: [Haskell-cafe] How to deal with utf-8?

2009-02-13 Thread Duncan Coutts
On Fri, 2009-02-13 at 08:33 +0100, Krzysztof Skrzętnicki wrote: On Fri, Feb 13, 2009 at 08:06, Magicloud magicloud.magiclo...@gmail.com wrote: Hi, I am using Text.CSV to read and using gtk2hs to display csv files using utf-8 encode. Well, it displays broken strings, seems like it cannot

Re: [Haskell-cafe] Race condition possible?

2009-02-13 Thread Duncan Coutts
On Thu, 2009-02-12 at 22:58 -0500, David Menendez wrote: On Thu, Feb 12, 2009 at 6:26 PM, Don Stewart d...@galois.com wrote: bugfact: Consider the following code stamp v x = do t - getCurrentTime putMVar v (x,t) Is it possible - with GHC - that a thread switch happens after

Re: [Haskell-cafe] Overloading functions based on arguments?

2009-02-13 Thread Duncan Coutts
On Fri, 2009-02-13 at 13:25 +0300, Eugene Kirpichov wrote: class Foobar a b where foobar :: a - b - Int instance Foobar String Int where ... instance Foobar Int String where ... But we typically do not to this. It's ugly. Classes work nicely when there is some kind of parametrisation

[Haskell-cafe] Help needed with apache config for hackage

2009-02-13 Thread Duncan Coutts
Hi folks, Does anyone have any experience with apache configuration, particularly mime types and handling browser quirks and would like to help us with an issue we have on hackage? http://hackage.haskell.org/trac/hackage/ticket/498 The problem is described in the ticket but basically IE6 gets

Re: [Haskell-cafe] Help needed with apache config for hackage

2009-02-13 Thread Duncan Coutts
On Fri, 2009-02-13 at 22:39 +1100, George Pollard wrote: On Fri, 2009-02-13 at 10:58 +, Duncan Coutts wrote: Hi folks, Does anyone have any experience with apache configuration, particularly mime types and handling browser quirks and would like to help us with an issue we have

Re: [Haskell-cafe] createProcess shutting file handles

2009-02-13 Thread Duncan Coutts
On Fri, 2009-02-13 at 15:38 +, Neil Mitchell wrote: What have I done wrong? Did createProcess close the handle, and is there a way round this? The docs for runProcess says: Any Handles passed to runProcess are placed immediately in the closed state. but the equivalent

Re: [Haskell-cafe] Gtk2HS 0.10.0 Released

2009-02-12 Thread Duncan Coutts
On Thu, 2009-02-12 at 10:11 +0100, Christian Maeder wrote: Duncan Coutts wrote: On Wed, 2009-02-11 at 15:49 +0100, Lennart Augustsson wrote: Does this version work from ghci? -- Lennart Specifically I believe Lennart is asking about Windows. It's worked in ghci in Linux for ages

Re: [Haskell-cafe] Changing version numbering schemes for HackageDB packages?

2009-02-12 Thread Duncan Coutts
On Wed, 2009-02-11 at 14:02 -0800, Corey O'Connor wrote: On Wed, Feb 11, 2009 at 2:48 AM, Duncan Coutts duncan.cou...@worc.ox.ac.uk wrote: On Tue, 2009-02-10 at 10:21 -0800, Corey O'Connor wrote: I released a new version of data-spacepart that resolved some of the issues with the previous

Re: [Haskell-cafe] Re: Haddock Markup

2009-02-12 Thread Duncan Coutts
On Tue, 2009-02-10 at 12:39 +0100, Henning Thielemann wrote: Heinrich Apfelmus schrieb: Henning Thielemann wrote: I want for long to write math formulas in a paper in Haskell. Actually, lhs2TeX can do such transformations but it is quite limited in handling of parentheses and does not

Re: [Haskell-cafe] Changing version numbering schemes for HackageDB packages?

2009-02-11 Thread Duncan Coutts
On Tue, 2009-02-10 at 10:21 -0800, Corey O'Connor wrote: I released a new version of data-spacepart that resolved some of the issues with the previous release. One issue I had was the previous release used the version numbering scheme I use at work: [date].[release] Which does not appear to

Re: [Haskell-cafe] Gtk2HS 0.10.0 Released

2009-02-11 Thread Duncan Coutts
On Wed, 2009-02-11 at 15:49 +0100, Lennart Augustsson wrote: Does this version work from ghci? -- Lennart Specifically I believe Lennart is asking about Windows. It's worked in ghci in Linux for ages and it worked in ghci in Windows prior to the 0.9.13 release. In the 0.9.13 release on

Re: [Haskell-cafe] Efficient string output

2009-02-09 Thread Duncan Coutts
On Mon, 2009-02-09 at 12:49 +0100, Ketil Malde wrote: Hi, I'm currently working on a program that parses a large binary file and produces various textual outputs extracted from it. Simple enough. But: since we're talking large amounts of data, I'd like to have reasonable performance.

Re: [Haskell-cafe] Haddock Markup

2009-02-09 Thread Duncan Coutts
On Mon, 2009-02-09 at 15:18 +0100, Henning Thielemann wrote: Khudyakov Alexey wrote: I think MathML is much less accessible than images. Yes, there are problems with them but any browser is able to display them save for text based ones. MathML on contrary doesn't have much support.

[Haskell-cafe] Re: haddock-2.3.0 literate comments discarded from .lhs input

2009-02-08 Thread Duncan Coutts
would be any better. For the particular case of .lhs and cpp, I hope we'd get better hscolour output by not running unlit or cpp first. Malcolm says it'll at least do something. So it seems worth checking which ends up looking more useful. Duncan On Fri, Feb 6, 2009 at 11:27 PM, Duncan Coutts Yes

[Haskell-cafe] Re: haddock-2.3.0 literate comments discarded from .lhs input

2009-02-06 Thread Duncan Coutts
On Fri, 2009-02-06 at 11:48 +0100, David Waern wrote: 2009/2/6 Alistair Bayley alist...@abayley.org: [1 of 1] Compiling Test.Fail( Test\Fail.hs, Test\Fail.o ) Test\Fail.hs:11:26: Can't make a derived instance of `Typeable Fail' (You need -XDeriveDataTypeable to derive an

<    1   2   3   4   5   6   7   8   9   10   >