Re: [Haskell-cafe] Cabal warning

2008-10-21 Thread Peter Higley
I had the same problem on a Mac system, change "GHC" to "ghc" and things will work. I didn't even think that it was an actual bug! Ticket #379 reports the problem. On Tue, Oct 21, 2008 at 3:52 PM, Duncan Coutts <[EMAIL PROTECTED]>wrote: > On Wed, 2008-10-22 at 00:05 +0200, Henk-Jan van Tuyl wro

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

2008-10-21 Thread Jason Dagit
On Tue, Oct 21, 2008 at 9:33 PM, Duncan Coutts <[EMAIL PROTECTED]> wrote: > 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 varia

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 Sys

[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 al

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 implementation

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 Haskell-Cafe@haskell.

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

[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 would

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 boil

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 (mos

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.

[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

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 bee

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 >> "multiqu

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] 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.h

[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] 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, tha

[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 1.2.0

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 answ

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

[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? ___

[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 o

[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

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] 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 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 respec

[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 http://www.h

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

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

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,

[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

[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 of

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

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 thi

[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 http://www

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 proj

[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

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: > http://www.

[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 f

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 fun

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 a

[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: http://www.cogsys.wiai.uni-bamberg.de/effalip

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

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 s

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] ___ Haskel

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 i

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]

[Haskell-cafe] Re: external linking traumas

2008-10-21 Thread Plareplane
Chris Dornan 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- > 1.7.a