Is there in Haskell the eval function?

Hello! I have a very stupid question. Sorry for that! Is there the eval function like in imperative languages? I'd like to write an application which has to be compiled to exec file. It is neccessary to performe some additional procedures which are unknown at the moment of the compilition. Regards wb.

Waldemar Biernacki wrote:
Is there the eval function like in imperative languages?
You mean like in interpreted languages?
I'd like to write an application which has to be compiled to exec file. It is neccessary to performe some additional procedures which are unknown at the moment of the compilition.
You could use the GHC libraries, or Hint which is built on top of GHC. I've used it before and it works pretty nicely. http://hackage.haskell.org/package/hint HTH, Martijn.

Thank you Martijn!
You mean like in interpreted languages? Naturally! My mistake.
I'd like to write an application which has to be compiled to exec file. It is neccessary to performe some additional procedures which are unknown at the moment of the compilition.
You could use the GHC libraries, or Hint which is built on top of GHC. I've used it before and it works pretty nicely.
At first sight it seems be what I'm looking for. I'll try. Thank you for the help! wb.

You may also want to look at Dyre. It does dynamic recompilation of source files. Depending on your application, hint may not be what you need. Eg, if you're trying to build something like lambdabot's interpreter, then Hint is probably on the right track, if you just want to use Haskell-as-configuration file (a la xmonad), then Dyre is probably a better (or at least easier, Hint can be evil...) choice /Joe On Oct 22, 2009, at 7:07 AM, Waldemar Biernacki wrote:
Thank you Martijn!
You mean like in interpreted languages? Naturally! My mistake.
I'd like to write an application which has to be compiled to exec file. It is neccessary to performe some additional procedures which are unknown at the moment of the compilition.
You could use the GHC libraries, or Hint which is built on top of GHC. I've used it before and it works pretty nicely.
At first sight it seems be what I'm looking for. I'll try.
Thank you for the help!
wb. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (3)
-
Joe Fredette
-
Martijn van Steenbergen
-
Waldemar Biernacki