[Haskell-cafe] Re: [Haskell] Haskell.org and Google Summer of Code 2006

2006-04-22 Thread Creighton Hogg
Well, now that we've started this discussion I presume it's okay if I ask a few things. I don't know if these are good ideas, but I thought I'd throw them out. Basically, I am a student and would be eligible for the SoC. I'd like to work on something related to numerics support or performance in

[Haskell-cafe] Re: Control.Exceptions and MonadIO

2006-04-22 Thread Brian Hulley
[EMAIL PROTECTED] wrote: Robert Dockins wrote: One additional (very unfortunate) point is that higher-order IO monad combinators will not work on your monad, eg, the ones in Control.Exception. Although that is true in general, for many useful and interesting cases (including ReaderT, the

[Haskell-cafe] need help please [HOpenGL]

2006-04-22 Thread enache alex
hello; I am writing to ask you a thing ; I am writing a little game on Haskell's HOpenGL ; the game isn't much , but I want to make look a little better ; and for that I want to use bitmaps (or textures) ; I don't know very much about this subject ; I've tried to use de bitmap function from

[Haskell-cafe] Haddock seems to generate wrong types in newtype deriving

2006-04-22 Thread Brian Hulley
Hi - I have the following code: data MState = MState -- details omitted type MonadStateMState = MonadState MState -- necessary for Haddock newtype ManagerM a = ManagerM (StateT MState IO a) deriving (Monad, MonadIO, MonadStateMState) which means that ManagerM is

Re: [Haskell-cafe] need help please [HOpenGL]

2006-04-22 Thread Brian Hulley
Hi - You could try something like: import Foreign.Ptr import Foreign.C.String bmp - withCAString C:\1.bmp $ bitmap (Size (100,100)) (Vertex2 0 0) (Vertex2 0 0) and if that doesn't work try withCString or withCWString. I'm assuming that the Ptr a in the docs is supposed to be a pointer to a

Re: [Haskell-cafe] need help please [HOpenGL]

2006-04-22 Thread Brian Hulley
Brian Hulley wrote: Hi - You could try something like: import Foreign.Ptr import Foreign.C.String bmp - withCAString C:\1.bmp $ bitmap (Size (100,100)) (Vertex2 0 0) (Vertex2 0 0) and if that doesn't work try withCString or withCWString. I'm assuming that the Ptr a in the docs is supposed to