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

2008-06-24 Thread Henning Thielemann
On Fri, 20 Jun 2008, Alistair Bayley wrote: Another problem is that the Oracle installation process assumes that, for all platforms, the library is called oci i.e. the linker option -loci is used. For Unix clients, the OCI library seems to be libclnstsh.so, so I guess it should pass -lclnstsh.

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

2008-06-24 Thread Alistair Bayley
2008/6/24 Henning Thielemann [EMAIL PROTECTED]: (I remain on the list in order to fill the archive with information, others may need, too.) As you wish. (Btw. Takusen should be split into several packages for all database backends because Cabal flags must not influence the package

Re: [Haskell-cafe] safe vs unsafe

2008-06-24 Thread Adam Langley
2008/6/23 Galchin, Vasili [EMAIL PROTECTED]: aio: schedule: re-entered unsafely. Perhaps a 'foreign import unsafe' should be 'safe'? I want to understand from an implementation viewpoint .. deeper. This is a GC issue yes? Are you reentering Haskell on a path which involves an unsafe FFI

[Haskell-cafe] NW Functional Programming Interest Group

2008-06-24 Thread Greg Meredith
All, Apologies for multiple listings. A small cadre of us, collectively known as the Northwest Functional Programming Interest Group, have been meeting monthly to discuss all things functional. Our next meeting is at The Seattle Public Library 5009 Roosevelt Way N.E. * Seattle*, WA 98105

Re: Haskell on ARM (was Re: [Haskell-cafe] ANN: Topkata)

2008-06-24 Thread Jeremy Shaw
Hello, I have, on two occasions made an *unregisterised* of GHC for the ARM (specifically the Maemo on Nokia 770). Mostly I just followed the unregisterised porting directions in the GHC user manual. I documented one attempt here: http://hackage.haskell.org/trac/ghc/wiki/ArmLinuxGhc Note: This

Re: [Haskell-cafe] safe vs unsafe

2008-06-24 Thread Galchin, Vasili
yes I am invoking a callback function written in Haskell. On Tue, Jun 24, 2008 at 12:03 PM, Adam Langley [EMAIL PROTECTED] wrote: 2008/6/23 Galchin, Vasili [EMAIL PROTECTED]: aio: schedule: re-entered unsafely. Perhaps a 'foreign import unsafe' should be 'safe'? I want to

Re: [Haskell-cafe] safe vs unsafe

2008-06-24 Thread Adam Langley
On Tue, Jun 24, 2008 at 12:08 PM, Galchin, Vasili [EMAIL PROTECTED] wrote: yes I am invoking a callback function written in Haskell. Then you should just need to remove the unsafe from the foreign import decl which leads to the callback getting called. AGL -- Adam Langley [EMAIL PROTECTED]

[Haskell-cafe] Template Haskell ListT wrinkle

2008-06-24 Thread Robert Greayer
In messing around with TH, I noticed (what I consider to be an) odd wrinkle in the handling of list types within TH's syntax meta-data. For example, given the program at the end of this email, which prints out the TH representation of the types 'Ints' and '[Int]', where 'Ints' is just a

Re: [Haskell-cafe] Template Haskell ListT wrinkle

2008-06-24 Thread Neil Mitchell
Hi Robert, The derive program [http://www.cs.york.ac.uk/~ndm/derive] works extensively with Template Haskell, and has come across loads of instances where you get either AppT or ListT, and similarly where you get either ListE or AppE - and I seem to remember ListP as well. I think the same also

[Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Norbert Wojtowicz
Hello, I am trying to use the SDL-mixer bindings to play wav files. I've hit a wierd error and I can't figure out how to solve it: Prelude import Graphics.UI.SDL.Mixer.Music Prelude Graphics.UI.SDL.Mixer.Music loadMUS test.wav Loading package SDL-0.5.4 ... linking ... done. Loading package

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Henning Thielemann
On Tue, 24 Jun 2008, Norbert Wojtowicz wrote: Hello, I am trying to use the SDL-mixer bindings to play wav files. I've hit a wierd error and I can't figure out how to solve it: Prelude import Graphics.UI.SDL.Mixer.Music Prelude Graphics.UI.SDL.Mixer.Music loadMUS test.wav Is the package

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Don Stewart
wojtowicz.norbert: Hello, I am trying to use the SDL-mixer bindings to play wav files. I've hit a wierd error and I can't figure out how to solve it: Prelude import Graphics.UI.SDL.Mixer.Music Prelude Graphics.UI.SDL.Mixer.Music loadMUS test.wav Loading package SDL-0.5.4 ... linking ...

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Don Stewart
lemming: On Tue, 24 Jun 2008, Norbert Wojtowicz wrote: Hello, I am trying to use the SDL-mixer bindings to play wav files. I've hit a wierd error and I can't figure out how to solve it: Prelude import Graphics.UI.SDL.Mixer.Music Prelude Graphics.UI.SDL.Mixer.Music loadMUS test.wav

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Marco Túlio Gontijo e Silva
Em Ter, 2008-06-24 às 14:57 -0500, Norbert Wojtowicz escreveu: Prelude import Graphics.UI.SDL.Mixer.Music Prelude Graphics.UI.SDL.Mixer.Music loadMUS test.wav Loading package SDL-0.5.4 ... linking ... done. Loading package SDL-mixer-0.5.2 ... linking ... interactive:

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Don Stewart
marcot: Em Ter, 2008-06-24 às 14:57 -0500, Norbert Wojtowicz escreveu: Prelude import Graphics.UI.SDL.Mixer.Music Prelude Graphics.UI.SDL.Mixer.Music loadMUS test.wav Loading package SDL-0.5.4 ... linking ... done. Loading package SDL-mixer-0.5.2 ... linking ... interactive:

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

2008-06-24 Thread Henning Thielemann
On Tue, 24 Jun 2008, Alistair Bayley wrote: 2008/6/24 Henning Thielemann [EMAIL PROTECTED]: (Btw. Takusen should be split into several packages for all database backends because Cabal flags must not influence the package interface.) I don't understand this (cabal flags must not influence

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

2008-06-24 Thread Henning Thielemann
On Sat, 21 Jun 2008, Lanny Ripple wrote: I had luck with this the other day using Database.HDBC.ODBC. For Ubuntu's Hardy I found that Oracle's 10.2.0.3 worked best. (10.2.0.4 and 11 seemed to have problems for me at least.)

[Haskell-cafe] Two questions regarding Alex/Parsec

2008-06-24 Thread Niels Aan de Brugh
Hello Haskellers, As an experiment I'm writing a parser for MediaWiki language. I'm using the Alex lexer and Parsec. I have novice two questions. (I've tried using Happy but I was unable to get a grammar file to compile, which must be because I have no real experience using Yacc and the like.

Re: [Haskell-cafe] Two questions regarding Alex/Parsec

2008-06-24 Thread Don Stewart
nielsadb: Hello Haskellers, As an experiment I'm writing a parser for MediaWiki language. I'm using the Alex lexer and Parsec. I have novice two questions. Just a quick question, did you try using the pandoc markdown parser?

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

2008-06-24 Thread Alistair Bayley
2008/6/24 Henning Thielemann [EMAIL PROTECTED]: When you run configure, you should get output that says: Using Oracle: path What is path? I don't get these questions. Sorry. I was really asking (not very clearly): what is the output from runhaskell Setup.hs configure -foracle ? You've

[Haskell-cafe] Bug in Emacs Haskell Mode

2008-06-24 Thread Ronald Guida
Emacs Haskell Mode has the following useful feature: when Haskell - Load File is used to load a file into GHCi from Emacs, Haskell Mode automatically looks for a *.cabal file in an attempt to find the project directory. When Haskell Mode finds the *.cabal file, it fails to check whether it has

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

2008-06-24 Thread Daniil Elovkov
Henning Thielemann wrote: On Sat, 21 Jun 2008, Lanny Ripple wrote: I had luck with this the other day using Database.HDBC.ODBC. For Ubuntu's Hardy I found that Oracle's 10.2.0.3 worked best. (10.2.0.4 and 11 seemed to have problems for me at least.)

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Norbert Wojtowicz
SDL-mixer does not support the most recent SDL version. The problem is that in SDL now Mix_LoadWAV is a macro. I've tried it with SDL-0.5.2 from hackage as well with the same problem. (Unless you mean an earlier version of the actual SDL library?) Ah ha, so it needs a cbits wrapper over the

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Don Stewart
wojtowicz.norbert: SDL-mixer does not support the most recent SDL version. The problem is that in SDL now Mix_LoadWAV is a macro. I've tried it with SDL-0.5.2 from hackage as well with the same problem. (Unless you mean an earlier version of the actual SDL library?) Ah ha, so it

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Norbert Wojtowicz
Attached is a patched version of SDL_mixer 0.5.2 with a C wrapper for this macro. I'm now able to run loadWAV in ghci. Works for me, thanks! Now I just need to learn how to make my WAVs sound not like computer-generated children voices. For example, using the hback wav files and this: import

[Haskell-cafe] Re: Haskell on ARM (was Re: ANN: Topkata)

2008-06-24 Thread Braden Shepherdson
Jeremy Shaw wrote: If any does attempt to build for the ARM, please, please, please, document what you do in the wiki. And, if you do, edit the wiki as you go, you definitely won't be able to remember what you did after the fact. (Or, at the very least, use some program to capture everything you

[Haskell-cafe] Re: Bug in Emacs Haskell Mode

2008-06-24 Thread Stefan Monnier
Emacs Haskell Mode has the following useful feature: when Haskell - Load File is used to load a file into GHCi from Emacs, Haskell Mode automatically looks for a *.cabal file in an attempt to find the project directory. I'm truly sorry about the fact that I only release new versions rather

[Haskell-cafe] Why the exception?

2008-06-24 Thread Thomas M. DuBuisson
Cafe I'm a bit lost on this exception and curious about what's going on. Is there a valid reason for this exception that I am missing? Note the hard-coded [0..100] could be any Word8 list you want (generated via arbitrary, [], or other) and it gives the same result. Load the module and perform:

[Haskell-cafe] Fwd: Cabalized, Self-Demoing, HStringTemplate-using HAppS Tutorial

2008-06-24 Thread tphyahoo
-- Forwarded message -- From: tphyahoo [EMAIL PROTECTED] Date: Jun 24, 7:26 pm Subject: Cabalized, Self-Demoing, HStringTemplate-using HAppS Tutorial To: HAppS Hello HAppSers! I have created a self-demoing, HStringTemplate-using intro to HAppS. There is a live demo at

[Haskell-cafe] Fwd: Cabalized, Self-Demoing, HStringTemplate-using HAppS Tutorial

2008-06-24 Thread tphyahoo
-- Forwarded message -- From: tphyahoo [EMAIL PROTECTED] Date: Jun 24, 7:46 pm Subject: Cabalized, Self-Demoing, HStringTemplate-using HAppS Tutorial To: HAppS There are some issues with the cabalized project -- templates are missing. Doh. Use darcs for now. Thomas. On Jun

Re: [Haskell-cafe] Fwd: Cabalized, Self-Demoing, HStringTemplate-using HAppS Tutorial

2008-06-24 Thread Thomas Hartman
Uy. I think I got the cabal install version as well, but I had to specify a mess of files manually. So I'll probably be using darcs tag for future release if there are any ;) thomas. 2008/6/24 tphyahoo [EMAIL PROTECTED]: -- Forwarded message -- From: tphyahoo [EMAIL

Re: [Haskell-cafe] Fwd: Cabalized, Self-Demoing, HStringTemplate-using HAppS Tutorial

2008-06-24 Thread Thomas Hartman
... cabal install version _working_ as well... (v0.2) 2008/6/24 Thomas Hartman [EMAIL PROTECTED]: Uy. I think I got the cabal install version as well, but I had to specify a mess of files manually. So I'll probably be using darcs tag for future release if there are any ;) thomas.

Re: [Haskell-cafe] Why the exception?

2008-06-24 Thread skynare
Probably you need to implement coarbitrary, too. My ghci session for your code: $ ghci GHCi, version 6.8.2: http://www.haskell.org/ghc/ :? for help Loading package base ... linking ... done. Prelude :l t.hs [1 of 1] Compiling Main ( t.hs, interpreted ) t.hs:4:0: Warning: No

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Luke Palmer
On Tue, Jun 24, 2008 at 6:34 PM, Norbert Wojtowicz [EMAIL PROTECTED] wrote: Attached is a patched version of SDL_mixer 0.5.2 with a C wrapper for this macro. I'm now able to run loadWAV in ghci. Works for me, thanks! Now I just need to learn how to make my WAVs sound not like