[Haskell-cafe] Re: Haskell-Cafe Digest, Vol 55, Issue 20

2008-03-17 Thread Maverick
Thanks Sterl, you're right, this was because I have don“t compiled with the -threaded flag, this works fine now. > This answer may be way off base, but if differences appear between > ghci and compiled versions, I've often found its as simple as > remembering to compile with the -threaded fla

[Haskell-cafe] Problem making a program in ghc

2008-03-13 Thread Maverick
Hi, I have a problem when I am trying to use a binary file generated by ghc make in Windows. Ihave writed an application that parses xml files and returns a result(using HaXml), this is published as a service, I implemented a server(withSocketsDo), the server listen the port 5760 in a forever

Re: [Haskell-cafe] symbol $

2007-05-07 Thread Maverick
> in if b1 && b2 then (True,Val (eval c e)) else (False,App op v1 v2) > Thanks once more Best regard Maverick Stefan Holdermans wrote: > > Maverick, > >> Do you mind tell what is mean by the symbol $ in this piece of >> code? Thanks

[Haskell-cafe] Monad and Monad transformer ???

2007-05-07 Thread Maverick
hi I am a newbee to haskell so please forgive me if the question is not appropreate. I am trying to get the idea of using Monad and have to understand the following code. Can you please tell me is how different Monad and Monad transformer is? And what is mean by > newtype State s a = State {

[Haskell-cafe] symbol $

2007-05-07 Thread Maverick
Hi Do you mind tell what is mean by the symbol $ in this piece of code? Thanks a lot. > mcompile :: Prog -> State Int Code > mcompile (Assign n e) = return $ compileExpr e ++ [POP n] > mcompile (If e p1 p2) = do cur <- fresh >pp1 <- mcompile p1 >

[Haskell-cafe] ffi question

2006-09-13 Thread Maverick
Hi, I have a question about ffi in Hugs98 (WinHugs-May2006.exe), the Hugs98 documentation says:"Only the ccall, stdcall and dotnet calling conventions are supported. All others are flagged as errors."But I can't get a dotnet import, the ffihugs returns me an error:ffihugs "example.hs"