Re: [GHC] #2716: ghci uses an enormous amount of memory (recent 6.10 snapshots)

2008-10-21 Thread GHC
#2716: ghci uses an enormous amount of memory (recent 6.10 snapshots) --+- Reporter: ravi | Owner: Type: bug | Status: new Priority: normal| Milestone:

Re: [GHC] #2716: ghci uses an enormous amount of memory (recent 6.10 snapshots)

2008-10-21 Thread GHC
#2716: ghci uses an enormous amount of memory (recent 6.10 snapshots) --+- Reporter: ravi | Owner: Type: bug | Status: new Priority: normal| Milestone:

Re: [GHC] #2716: ghci uses an enormous amount of memory (recent 6.10 snapshots)

2008-10-21 Thread GHC
#2716: ghci uses an enormous amount of memory (recent 6.10 snapshots) --+- Reporter: ravi | Owner: Type: bug | Status: new Priority: high | Milestone:

[GHC] #2717: Add nubWith, nubOrd

2008-10-21 Thread GHC
#2717: Add nubWith, nubOrd -+-- Reporter: Bart Massey | Owner: Type: proposal | Status: new Priority: normal| Component:

Re: [GHC] #2717: Add nubWith, nubOrd

2008-10-21 Thread GHC
#2717: Add nubWith, nubOrd -+-- Reporter: Bart Massey |Owner: Type: proposal | Status: new Priority: normal|Milestone:

Re: [GHC] #2629: Data.List: Replace nub; add nubOrd, nubInt, nubWith

2008-10-21 Thread GHC
#2629: Data.List: Replace nub; add nubOrd, nubInt, nubWith --+- Reporter: Bart Massey | Owner: Type: proposal | Status: closed Priority: normal

Re: [GHC] #1364: Finalizers not guaranteed to run before the program exits

2008-10-21 Thread GHC
#1364: Finalizers not guaranteed to run before the program exits --+- Reporter: [EMAIL PROTECTED] | Owner: simonmar Type: feature request | Status: new Priority: normal

Re: [GHC] #2714: No match in record selector Var.tcTyVarDetails

2008-10-21 Thread GHC
#2714: No match in record selector Var.tcTyVarDetails -+-- Reporter: morrow|Owner: Type: bug | Status: new

Re: [GHC] #1475: Adding imports and exports with Template Haskell

2008-10-21 Thread GHC
#1475: Adding imports and exports with Template Haskell --+- Reporter: igloo | Owner: Type: feature request | Status: new Priority: normal|

Re: [GHC] #1895: Allow aliases in GHCi module imports

2008-10-21 Thread GHC
#1895: Allow aliases in GHCi module imports --+- Reporter: tibbe | Owner: Type: feature request | Status: new Priority: normal|

Re: [GHC] #1365: -fbyte-code is ignored in a OPTIONS_GHC pragma

2008-10-21 Thread GHC
#1365: -fbyte-code is ignored in a OPTIONS_GHC pragma --+- Reporter: mnislaih | Owner: Type: feature request | Status: new Priority: normal|

Re: [GHC] #2714: No match in record selector Var.tcTyVarDetails

2008-10-21 Thread GHC
#2714: No match in record selector Var.tcTyVarDetails -+-- Reporter: morrow|Owner: Type: bug | Status: new

Re: [GHC] #1496: Newtypes and type families combine to produce inconsistent FC(X) axiom sets

2008-10-21 Thread GHC
#1496: Newtypes and type families combine to produce inconsistent FC(X) axiom sets -+-- Reporter: sorear | Owner: simonpj Type: bug | Status: new

Re: [GHC] #2716: ghci uses an enormous amount of memory (recent 6.10 snapshots)

2008-10-21 Thread GHC
#2716: ghci uses an enormous amount of memory (recent 6.10 snapshots) --+- Reporter: ravi | Owner: Type: bug | Status: new Priority: high | Milestone:

Re: [GHC] #2697: bad testsuite results with ghc-6.10.0.20081007

2008-10-21 Thread GHC
#2697: bad testsuite results with ghc-6.10.0.20081007 --+- Reporter: maeder| Owner: Type: bug | Status: new Priority: high |

Re: [GHC] #2693: Type Synonym Family Panic in GHC 6.10.0.20081007

2008-10-21 Thread GHC
#2693: Type Synonym Family Panic in GHC 6.10.0.20081007 --+- Reporter: BenMoseley| Owner: chak Type: merge | Status: reopened Priority: normal| Milestone:

Re: [GHC] #2693: Type Synonym Family Panic in GHC 6.10.0.20081007

2008-10-21 Thread GHC
#2693: Type Synonym Family Panic in GHC 6.10.0.20081007 --+- Reporter: BenMoseley| Owner: igloo Type: merge | Status: new Priority: normal| Milestone:

Re: [GHC] #2688: GHC 6.10.0.20081007 hangs instead of giving error about missing type class constraint

2008-10-21 Thread GHC
#2688: GHC 6.10.0.20081007 hangs instead of giving error about missing type class constraint --+- Reporter: PVerswyvelen | Owner: chak Type: merge | Status: reopened

[GHC] #2718: Building ghc-6.8.3 with ghc-6.2.2 failed on Red Hat 7.3 machine

2008-10-21 Thread GHC
#2718: Building ghc-6.8.3 with ghc-6.2.2 failed on Red Hat 7.3 machine ---+ Reporter: jputcu | Owner: Type: bug | Status: new Priority: normal | Component: Build

Re: [GHC] #2716: ghci uses an enormous amount of memory (recent 6.10 snapshots)

2008-10-21 Thread GHC
#2716: ghci uses an enormous amount of memory (recent 6.10 snapshots) --+- Reporter: ravi | Owner: Type: bug | Status: closed Priority: high | Milestone:

Re: [GHC] #2718: Building ghc-6.8.3 with ghc-6.2.2 failed on Red Hat 7.3 machine

2008-10-21 Thread GHC
#2718: Building ghc-6.8.3 with ghc-6.2.2 failed on Red Hat 7.3 machine -+-- Reporter: jputcu|Owner: Type: bug | Status: new Priority: normal|Milestone:

Re: [GHC] #2698: Windows binary distribution pops up README.TXT for the source distribution

2008-10-21 Thread GHC
#2698: Windows binary distribution pops up README.TXT for the source distribution --+- Reporter: ganesh| Owner: igloo Type: bug | Status: closed Priority: high | Milestone:

Re: [GHC] #2703: Buffer overflow, occasional segfaults when using handles created by Network.

2008-10-21 Thread GHC
#2703: Buffer overflow, occasional segfaults when using handles created by Network. ---+ Reporter: sclv | Owner: igloo Type: merge | Status: closed

Re: [GHC] #2688: GHC 6.10.0.20081007 hangs instead of giving error about missing type class constraint

2008-10-21 Thread GHC
#2688: GHC 6.10.0.20081007 hangs instead of giving error about missing type class constraint --+- Reporter: PVerswyvelen | Owner: igloo Type: merge | Status: closed

Re: [GHC] #2693: Type Synonym Family Panic in GHC 6.10.0.20081007

2008-10-21 Thread GHC
#2693: Type Synonym Family Panic in GHC 6.10.0.20081007 --+- Reporter: BenMoseley| Owner: igloo Type: merge | Status: closed Priority: normal| Milestone:

Re: [GHC] #2711: haddock contents/index includes hidden modules (broken links)

2008-10-21 Thread GHC
#2711: haddock contents/index includes hidden modules (broken links) --+- Reporter: igloo | Owner: Type: bug | Status: closed Priority: high

[GHC] #2720: eyeball/inline1 still isn't optimised with -fno-method-sharing

2008-10-21 Thread GHC
#2720: eyeball/inline1 still isn't optimised with -fno-method-sharing -+-- Reporter: rl| Owner: Type: run-time performance bug | Status: new

[GHC] #2721: Newtype deriving doesn't work with type families

2008-10-21 Thread GHC
#2721: Newtype deriving doesn't work with type families -+-- Reporter: rl| Owner: Type: bug | Status: new Priority: normal

Re: cabal

2008-10-21 Thread Christian Maeder
Duncan Coutts wrote: The basic problem here is that the version number of the network package has not been bumped. see below You probably installed from a ghc bindist that has network-2.2.0.0 already, Yes, you're right, and I didn't notice that, because I relied on cabal install. however

Re: [Haskell] Probably a trivial thing for people knowing Haskell

2008-10-21 Thread Friedrich
Udo Stenzel [EMAIL PROTECTED] writes: Friedrich wrote: Ok to be more concrete is the laziness hidden here? check_line line sum count = let match = matchRegex regexp line in case match of Just strs - (sum + read (head strs) :: Integer, count + 1)

Re: [Haskell] Probably a trivial thing for people knowing Haskell

2008-10-21 Thread Friedrich
Udo Stenzel [EMAIL PROTECTED] writes: Friedrich wrote: Ok to be more concrete is the laziness hidden here? check_line line sum count = let match = matchRegex regexp line in case match of Just strs - (sum + read (head strs) :: Integer, count + 1)

[Haskell] Re: Probably a trivial thing for people knowing Haskell

2008-10-21 Thread apfelmus
Friedrich wrote: Paul Johnson writes: -- Concatenate all the files into one big string. File reading is lazy, so this won't take all the memory. getAllFiles :: [String] - IO String getAllFiles paths = do contents - mapM getFile paths return $ concat contents Then use lines to split

Re: [Haskell] Re: Probably a trivial thing for people knowing Haskell

2008-10-21 Thread Friedrich
the posted codes runs in constant memory, so yes that make it possible that the stuff runs. That's really nice. Howerver the time is drastically bad Even the ruby solution need just check_downloads/check_downloads.rb . 1,25s user 0,06s system 99% cpu 1,322 total Here's the ruby code

Re: [Haskell] Re: Probably a trivial thing for people knowing Haskell

2008-10-21 Thread Ketil Malde
Friedrich [EMAIL PROTECTED] writes: Even the ruby solution need just check_downloads/check_downloads.rb . 1,25s user 0,06s system 99% cpu 1,322 total [...] but the haskell solution: ./chk_dwlds 17,71s user 0,11s system 99% cpu 17,836 total I'm very surprised to see this. Did you

Re: [Haskell] Re: Probably a trivial thing for people knowing Haskell

2008-10-21 Thread Friedrich
Well I never have tried to profile here's my first try. I compiled with ghc --make -O -prof -auto-all chk_dwlds.hs I've run the program with: ./chk_dwlds \+RTS -p \-RTS and got this .prof file Tue Oct 21 15:01 2008 Time and Allocation Profiling Report (Final) chk_dwlds

RE: [Haskell] Probably a trivial thing for people knowing Haskell

2008-10-21 Thread Simon Peyton-Jones
Folks, I wonder if this worthwhile thread could move from haskell@haskell.org to [EMAIL PROTECTED] The main Haskell list, haskell@haskell.org, is a low-bandwidth list for discussion starters and announcements. The Haskell Cafe, by contrast, is a high-bandwidth list for detailed discussion.

[Haskell] REMINDER: Haskell Communities and Activities Report

2008-10-21 Thread Janis Voigtlaender
Dear Haskellers, The deadline for the November 2008 edition of the Haskell Communities and Activities Report is only ten days away. If you haven't already, please write an entry for your new project, or update your old entry. Please mail your entries to [EMAIL PROTECTED] in plain text or LaTeX

Re: [Haskell] Abusing quickcheck to check existential properties

2008-10-21 Thread Rickard Nilsson
On Sun, 19 Oct 2008 00:39:32 +0200, Norman Ramsey [EMAIL PROTECTED] wrote: I guess what I would like is to reuse most of the mechanisms in QuickCheck to have it say one of these two things: 1. Found an satisfying instance after 73 tries: [gives instance] 2. After 100 tries, could not find

[Haskell] ANNOUNCE: colour 0.0.0

2008-10-21 Thread roconnor
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/colour-0.0.0 I hope for this library to become the standard colour library for Haskell. Most software does not properly blend colours because they fail to gamma-correct the colours before blending. Hopefully by using this library,

[Haskell-cafe] Re: A heretic question

2008-10-21 Thread Benjamin L . Russell
On Tue, 21 Oct 2008 01:46:00 -0400, [EMAIL PROTECTED] wrote: A paintbrush is easy to use, but hard to use well. An interesting analogy. Then, in the style of a verbal analogy exam question: C++ : paintbrush :: Haskell : ? Is C++ really easy to use? -- Benjamin L. Russell

[Haskell-cafe] Re: external linking traumas

2008-10-21 Thread Plareplane
Chris Dornan chris at chrisdornan.com writes: If I try the same with ghc: ghc test.hs -package hsql-1.7 -package hsql-mysql-1.7 -L. -llibmysql with libmysql.lib copied into the same directory I get: C:\Program Files\Haskell\hsql-mysql-1.7\ghc-6.8.3/libHShsql-mysql-

Re: [Haskell-cafe] Re: A heretic question

2008-10-21 Thread Bulat Ziganshin
Hello Benjamin, Tuesday, October 21, 2008, 8:13:55 AM, you wrote: Maybe this is just me, but if I had to choose a tool, I'd choose one that would be easy to use well. and what tool you choose in 80's? :) -- Best regards, Bulatmailto:[EMAIL PROTECTED]

Re: [Haskell-cafe] Re: A heretic question

2008-10-21 Thread Colin Paul Adams
Bulat == Bulat Ziganshin [EMAIL PROTECTED] writes: Bulat Hello Benjamin, Bulat Tuesday, October 21, 2008, 8:13:55 AM, you wrote: Maybe this is just me, but if I had to choose a tool, I'd choose one that would be easy to use well. Bulat and what tool you choose in 80's? :) A

Re[2]: [Haskell-cafe] Re: A heretic question

2008-10-21 Thread Bulat Ziganshin
Hello Colin, Tuesday, October 21, 2008, 12:56:30 PM, you wrote: Bulat and what tool you choose in 80's? :) A TARDIS. and why it not ruled the world? :) -- Best regards, Bulatmailto:[EMAIL PROTECTED] ___

Re: [Haskell-cafe] Haskell syntax inside QuasiQuote

2008-10-21 Thread Reiner Pope
It sounds like you're doing exactly what I'm looking for. I look forward to more. Reiner On Tue, Oct 21, 2008 at 4:28 PM, Matt Morrow [EMAIL PROTECTED] wrote: Is there a simple way to do this, i.e. using existing libraries? Yes indeed. I'll be traveling over the next two days, and am

Re: [Haskell-cafe] Re: ghc error: requested module name differs from name found in interface file

2008-10-21 Thread Bertram Felgenhauer
Larry Evans wrote: On 10/20/08 12:33, Larry Evans wrote: With a file containing: module Main where import Array import Control.Functor.Fix I get: make ghc -i/root/.cabal/lib/category-extras-0.53.5/ghc-6.8.2 -c catamorphism.example.hs Yes, using -i to give paths to installed

[Haskell-cafe] code generation

2008-10-21 Thread Martin Hofmann
We try to learn functional programs from examples, but our system is not yet ported to Haskell, though we are working on it. However, we thought about using TH. Do you have any pointers to papers, etc. ? You'll find our project, system and papers here:

Re: [Haskell-cafe] Verifying a list of properties using QuickCheck

2008-10-21 Thread Brent Yorgey
On Mon, Oct 20, 2008 at 01:29:10PM +0200, Thomas van Noort wrote: Hi, I would like to verify a list of properties using QuickCheck. Of course, I can test a single property using: quickCheck :: Testable prop = prop - IO () Then, I can check a list of properties my mapping this function

[Haskell-cafe] REMINDER: Haskell Communities and Activities Report

2008-10-21 Thread Janis Voigtlaender
Dear Haskellers, The deadline for the November 2008 edition of the Haskell Communities and Activities Report is only ten days away. If you haven't already, please write an entry for your new project, or update your old entry. Please mail your entries to [EMAIL PROTECTED] in plain text or LaTeX

RE: [Haskell-cafe] code generation

2008-10-21 Thread Mitchell, Neil
We try to learn functional programs from examples, but our system is not yet ported to Haskell, though we are working on it. However, we thought about using TH. Do you have any pointers to papers, etc. ? You'll find our project, system and papers here:

Re: [Haskell-cafe] need help making sense of the relative indexing

2008-10-21 Thread Ryan Ingram
We represent bars by integers... we have five primitive indicators: high, low, open, close, and volume It looks like they are using a single implicit bar chart as the input for the program; a bar' is just an integer reference into that chart; the only thing you can do with a Bar is pass it to an

[Haskell-cafe] Re: ghc error: requested module name differs from name found in interface file

2008-10-21 Thread Larry Evans
On 10/21/08 07:35, Bertram Felgenhauer wrote: Larry Evans wrote: On 10/20/08 12:33, Larry Evans wrote: With a file containing: module Main where import Array import Control.Functor.Fix I get: make ghc -i/root/.cabal/lib/category-extras-0.53.5/ghc-6.8.2 -c catamorphism.example.hs

Re: [Haskell-cafe] code generation

2008-10-21 Thread Marc Weber
On Tue, Oct 21, 2008 at 03:04:27PM +0200, Martin Hofmann wrote: We try to learn functional programs from examples, but our system is not yet ported to Haskell, though we are working on it. However, we thought about using TH. Do you have any pointers to papers, etc. ? You'll find our project,

[Haskell-cafe] Re: A heretic question

2008-10-21 Thread Eric Willigers
Achim Schneider wrote: What kind of things, barring coding on Haskell-less platforms and library interfaces would you choose to do in C++? transactional database servers HTML renderers ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] code generation

2008-10-21 Thread Don Stewart
zghost123: hello, im interested in using haskell to generate code and make little AI applications for fun.. is anyone already doing this sort of thing?

Re: [Haskell-cafe] code generation

2008-10-21 Thread Antoine Latter
2008/10/20 z ghost [EMAIL PROTECTED]: hello, im interested in using haskell to generate code and make little AI applications for fun.. is anyone already doing this sort of thing? it would be fun to collaborate with people on this. I've been doing some work with Haskell code-generation in

[Haskell-cafe] Haddock on cygwin

2008-10-21 Thread Tom Hawkins
I'm having the following issue with Haddock 2.0 and GHC 6.8.3 on cygwin: $ haddock -o doc --html -B /cygdrive/c/Program\ Files/Haskell/ghc-6.8.3/lib Test.hs $ haddock.exe: Can't find package.conf as \cygdrive\c\Program Files\Haskell\ghc-6.8.3\lib\driver\package.conf.inplace The windows install

[Haskell-cafe] FFI and GHCi

2008-10-21 Thread Emil Axelsson
Hi, I'm making my first attempt at using some C code in my Haskell program. I need it because I have a large amount of small constant tables, and GHC takes ages to compile the if I use ordinary lists (and the object file gets huge). If there's any way of achieving this without going to C, I'd

Re: [Haskell-cafe] FFI and GHCi

2008-10-21 Thread Corey O'Connor
I would think there is a command you can embed in the .ghci file that would automate the loading of the object files. But I didn't see one on a quick scan of the manual: http://www.haskell.org/ghc/docs/latest/html/users_guide/ghci-dot-files.html -Corey O'Connor On Tue, Oct 21, 2008 at 9:10 AM,

Re: [Haskell-cafe] Re: A heretic question

2008-10-21 Thread David Leimbach
On Mon, Oct 20, 2008 at 8:07 PM, Benjamin L. Russell [EMAIL PROTECTED] wrote: On Sun, 19 Oct 2008 23:08:06 +0200, Achim Schneider [EMAIL PROTECTED] wrote: What kind of things, barring coding on Haskell-less platforms and library interfaces would you choose to do in C++? I'm asking 'cos

Re: [Haskell-cafe] FFI and GHCi

2008-10-21 Thread Emil Axelsson
I thought so too, but didn't find anything that seemed to work. One thing that perhaps could work would be to set the -l flag from the .ghci file. But when I tried giving -lincrease on the command line, apparently GHC expects to find a file named libincrease.so, which apparently is not the same

Re: [Haskell-cafe] code generation

2008-10-21 Thread z ghost
Thanks for that! I don't know yet what would be the easiest way to automatically build up haskell code (Template haskell's Exps or the HsDecls in your link). Generating is only a part of what i need, though. I would like some feedback from GHC about the generated code (to see if the expressions

[Haskell-cafe] Installing ghc + gtk2hs on linux

2008-10-21 Thread Bulat Ziganshin
Hello haskell-cafe, i'm linux freshman what's the simplest way to install ghc + gtk2hs on Ubuntu x86 system? -- Best regards, Bulat mailto:[EMAIL PROTECTED] ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Installing ghc + gtk2hs on linux

2008-10-21 Thread Michał Pałka
Hi Bulat, (Note, I'm not using Ubuntu) You may use the packaged versions from Ubuntu. According to http://packages.ubuntu.org/ Hardy (which is the current version of Ubuntu) has GHC vesion 6.8.2-2ubuntu1 and gtk2hs version 0.9.12.1-1ubuntu2. Ubuntu package names are ghc6 and libghc6-gtk-dev

[Haskell-cafe] Spine-lazy multiqueue

2008-10-21 Thread Luke Palmer
Hi, I need a rather strange data structure, and I can't find any existing implementations or think of a way to implement it. It's a multiqueue, basically a map of queues. The trick is that it should be lazy in its spine and still support efficient access. For example, the following should hold:

Re: [Haskell-cafe] Installing ghc + gtk2hs on linux

2008-10-21 Thread Ketil Malde
Bulat Ziganshin [EMAIL PROTECTED] writes: what's the simplest way to install ghc + gtk2hs on Ubuntu x86 system? Untested, but try: sudo apt-get install libghc6-gtk-dev -k -- If I haven't seen further, it is by standing in the footprints of giants

[Haskell-cafe] Re: A heretic question

2008-10-21 Thread Achim Schneider
Benjamin L.Russell [EMAIL PROTECTED] wrote: Read the following uncensored interview with Bjarne Stroustrup, the designer of C++, and then tell me what you think: An Interview with Bjarne Stroustrup http://www.ariel.com.au/jokes/An_Interview_with_Bjarne_Stroustrup.html As I read it the

[Haskell-cafe] Re: A heretic question

2008-10-21 Thread Achim Schneider
Mauricio [EMAIL PROTECTED] wrote: At first, make sure you have Bjarne Stroustrup book (very important: last edition). If there's anything good in C++, it's there. Look also at his homepage: http://www.research.att.com/~bs/homepage.html I got the third edition and read it a couple of

[Haskell-cafe] Template Haskell

2008-10-21 Thread Andrew Coppin
If I'm understanding this correctly, Template Haskell is a way to auto-generate repetative Haskell source code. The thing that worries me is... if you need to write repetative Haskell source code, doesn't that mean that Haskell itself is broken in the first place?

Re: [Haskell-cafe] Spine-lazy multiqueue

2008-10-21 Thread Justin Bailey
On Tue, Oct 21, 2008 at 11:43 AM, Luke Palmer [EMAIL PROTECTED] wrote: Hi, I need a rather strange data structure, and I can't find any existing implementations or think of a way to implement it. It's a multiqueue, basically a map of queues. The trick is that it should be lazy in its spine

Re[2]: [Haskell-cafe] Installing ghc + gtk2hs on linux

2008-10-21 Thread Bulat Ziganshin
Hello Ketil, Tuesday, October 21, 2008, 10:56:40 PM, you wrote: what's the simplest way to install ghc + gtk2hs on Ubuntu x86 system? Untested, but try: sudo apt-get install libghc6-gtk-dev thanks to everyone who answered. this one was shortest and it works. i don't tested other answers

[Haskell-cafe] cabal-install question

2008-10-21 Thread Ken98
Hello, I recently started using cabal-install to install packages. However, ran into a problem today trying to install ftphs where the current HUnit dependency required base (==4). I'm using ghc-6.8.2 on ubuntu. To get around this, I looked through previous versions of HUnit and found that

Re: [Haskell-cafe] cabal-install question

2008-10-21 Thread Svein Ove Aas
On Tue, Oct 21, 2008 at 11:37 PM, Ken98 [EMAIL PROTECTED] wrote: Hello, I recently started using cabal-install to install packages. However, ran into a problem today trying to install ftphs where the current HUnit dependency required base (==4). I'm using ghc-6.8.2 on ubuntu. Right, that's

[Haskell-cafe] Cabal warning

2008-10-21 Thread Henk-Jan van Tuyl
L.S., I keep getting the following warning for each cabal install command: Warning: Error parsing config file C:\Documents and Settings\[User]\Application Data\cabal\config: On line 1: GHC Warning: Using default configuration. The first line of this file is: compiler: GHC What can I

Re: [Haskell-cafe] Build without install, using cabal

2008-10-21 Thread Duncan Coutts
On Mon, 2008-10-20 at 17:04 -0200, Mauricio wrote: Hi, I would like to include a few source files as 'executable' sections in a .cabal package description. However, although I do want to use main=mainDefault features, I do not want those packages to be installed when I run 'Setup.hs

Re: [Haskell-cafe] Cabal warning

2008-10-21 Thread Duncan Coutts
On Wed, 2008-10-22 at 00:05 +0200, Henk-Jan van Tuyl wrote: L.S., I keep getting the following warning for each cabal install command: Warning: Error parsing config file C:\Documents and Settings\[User]\Application Data\cabal\config: On line 1: GHC Warning: Using default

Re: [Haskell-cafe] Spine-lazy multiqueue

2008-10-21 Thread Luke Palmer
On Tue, Oct 21, 2008 at 3:02 PM, Justin Bailey [EMAIL PROTECTED] wrote: On Tue, Oct 21, 2008 at 11:43 AM, Luke Palmer [EMAIL PROTECTED] wrote: Hi, I need a rather strange data structure, and I can't find any existing implementations or think of a way to implement it. It's a multiqueue,

Re: [Haskell-cafe] Re: ghc error: requested module name differs from name found in interface file

2008-10-21 Thread Duncan Coutts
On Tue, 2008-10-21 at 09:41 -0500, Larry Evans wrote: Just that one little piece of information, that |cabal install| , by default, installs in ~/.cabal and then enables ghc to look there for packages, would have saved an awful lot of time :( Where would you like that information to have been

[Haskell-cafe] Re: Template Haskell

2008-10-21 Thread Achim Schneider
Andrew Coppin [EMAIL PROTECTED] wrote: If I'm understanding this correctly, Template Haskell is a way to auto-generate repetative Haskell source code. The thing that worries me is... if you need to write repetative Haskell source code, doesn't that mean that Haskell itself is broken in

Re: [Haskell-cafe] Template Haskell

2008-10-21 Thread Philippa Cowderoy
On Tue, 21 Oct 2008, Andrew Coppin wrote: If I'm understanding this correctly, Template Haskell is a way to auto-generate repetative Haskell source code. Amongst other things, yes. It's also a way to perform repetitive transformations on code, for example. The thing that worries me is...

Re: [Haskell-cafe] Template Haskell

2008-10-21 Thread Ariel J. Birnbaum
The thing that worries me is... if you need to write repetative Haskell source code, doesn't that mean that Haskell itself is broken in the first place? I wouldn't go as far as calling it broken. Sure, writing boilerplate is a pain, but Haskell in this respect is far better than many (most?)

Re: [Haskell-cafe] Template Haskell

2008-10-21 Thread Philippa Cowderoy
On Wed, 22 Oct 2008, Ariel J. Birnbaum wrote: This is the part when the Lisp hackers in the audience chuckle, as one of them raises a hand and asks What happens when you grow tired of writing TH boilerplate? Wait for another extension? And what after that?. To be fair, the TH

[Haskell-cafe] Re: ghc error: requested module name differs from name found in interface file

2008-10-21 Thread Larry Evans
On 10/21/08 17:55, Duncan Coutts wrote: On Tue, 2008-10-21 at 09:41 -0500, Larry Evans wrote: Just that one little piece of information, that |cabal install| , by default, installs in ~/.cabal and then enables ghc to look there for packages, would have saved an awful lot of time :( Where

Re: [Haskell-cafe] Spine-lazy multiqueue

2008-10-21 Thread Sterling Clover
On 10/21/08, Luke Palmer [EMAIL PROTECTED] wrote: Well, first, my question was highly malformed. I actually just want a spine lazy map of lists; queues were not what I wanted. [...] The best I've come up with so far is a binary search tree where the most recently inserted thing is at the

Re: [Haskell-cafe] code generation

2008-10-21 Thread Anatoly Yakovenko
you can also write an interpreter in haskell that will typecheck using GADT's http://www.informatik.uni-bonn.de/~ralf/publications/With.pdf http://www.haskell.org/pipermail/haskell/2005-May/015815.html ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Spine-lazy multiqueue

2008-10-21 Thread Timothy Goddard
On Wed, 22 Oct 2008 11:54:50 Luke Palmer wrote: On Tue, Oct 21, 2008 at 3:02 PM, Justin Bailey [EMAIL PROTECTED] wrote: On Tue, Oct 21, 2008 at 11:43 AM, Luke Palmer [EMAIL PROTECTED] wrote: Hi, I need a rather strange data structure, and I can't find any existing implementations or think

[Haskell-cafe] Help converting Perl to Haskell

2008-10-21 Thread Jason Dagit
Hello, I'm not very perl literate, but I want to convert a perl script to Haskell. This bit of perl is part of darcs' test suite. I was hoping to make it more portable by writing it in Haskell. By more portable I mean, works in windows without cygwin/mingw/msys and avoids the need for perl

Re: [Haskell-cafe] Help converting Perl to Haskell

2008-10-21 Thread Duncan Coutts
On Tue, 2008-10-21 at 20:33 -0700, Jason Dagit wrote: Correct me if I'm wrong, but if I want to make this work on windows I can't use System.Posix, right? If so, what is the portable way to set environment variables? I see[1] that getEnv exists in System.Environment, but setEnv is in