[Haskell-cafe] OpenAL - compiling problem

2012-11-28 Thread Gary Klindt
Dear Haskell Cafe, I tried installing the haskell openal library via cabal install openal I get the following error: ... [ 7 of 30] Compiling Sound.OpenAL.ALC.QueryUtils ( Sound/OpenAL/ALC/QueryUtils.hs, dist/build/Sound/OpenAL/ALC/QueryUtils.o ) Sound/OpenAL/ALC/QueryUtils.hs:66:1:

[Haskell-cafe] SOX - play simple

2012-11-28 Thread Gary Klindt
Dear Cafe, after installing the Sox library (cabal install sox) I wanted to let run a minimal example from http://hackage.haskell.org/packages/archive/sox/0.2.2.2/doc/html/Sound-Sox-Play.html module Main where import Sound.Sox.Play import Sound.Sox.Signal.List --import Sound.Sox.Option.Format

Re: [Haskell-cafe] OpenAL - compiling problem

2012-11-28 Thread Gary Klindt
On 11/28/2012 07:01 PM, Stephen Tetley wrote: Hi Gary Which version of GHC are you using? My suspicion is that ALCdevice might be a newtype falling foul of recent changes to GHC... v7.4.1: GHC now requires, as per the standard, that if a newtype is used in an FFI declaration, then the

[Haskell-cafe] gtk2hs: adding widget during runtime

2011-12-17 Thread Gary Klindt
Hello Haskellers, currently I work with the gtk2hs library to create a graphical user interface. Everything works fine, but there is one problem: How can I insert widgets into boxes during runtime? I tried something like: main = do initGUI window - windowNew box - vBoxNew True 0

Re: [Haskell-cafe] gtk2hs: adding widget during runtime

2011-12-17 Thread Gary Klindt
On 12/17/2011 09:03 PM, Joachim Breitner wrote: Hi, Am Samstag, den 17.12.2011, 20:42 +0100 schrieb Gary Klindt: That compiles fine, but the GUI never shows a neues label!. blind guess: Do you need to call widgetShow on the newly created widget? Uuh! That seem's very elemental, and it works

[Haskell-cafe] happstack file serving

2011-11-01 Thread Gary Klindt
Hello all, I want to have a web application using one 'index.html' file with ajax requests and a happstack web server which response to server requests. For that purpose I need to use some javascript libraries in my directory tree. I tried: main = simpleHTTP nullConf $ msum [ serveFile

Re: [Haskell-cafe] happstack file serving

2011-11-01 Thread Gary Klindt
Hey Antoine, thank you for answering. Your strategy is quite similar to the one I prefer. I misunderstood the behaviour of serveDirectory. The problem with external javascript files is solved. The other problem I had, was, that the argument 'msum' is a list, which has elements with the same