
I'm thinking of porting my OfflineIMAP program from Python to Haskell. In the configuration file for OfflineIMAP, I permit people to use a Python lambda expression for some things. For instance: folderfilter = lambda foldername: not re.search('(^Trash$|Del)', foldername) So I think it would be useful to be able to do something similar in Haskell. hs-plugins immediately occured to me. But there are several problems with it: 1. Only works with GHC (no Hugs) 2. Only as portable as ghci. So quite a few platforms that are important to me would be excluded (Alpha, ARM, AIX, etc.) I'm wondering if there are any alternatives? Can a Haskell program using Hugs call Hugs to evaluate an arbitrary hunk of code? Is there any portable Haskell interpreter written in Haskell? Thanks, -- John

On Thu, 06 Oct 2005, John Goerzen
I'm wondering if there are any alternatives? Can a Haskell program using Hugs call Hugs to evaluate an arbitrary hunk of code?
Although it is not very efficient you can of course call Hugs and parse its output. I have some working code in http://www.cs.chalmers.se/~nad/repos/diagnostic/Haskell.hs which you can build on if you want to. -- /NAD

On 2005-10-06, Nils Anders Danielsson
On Thu, 06 Oct 2005, John Goerzen
wrote: Although it is not very efficient you can of course call Hugs and parse its output. I have some working code in http://www.cs.chalmers.se/~nad/repos/diagnostic/Haskell.hs
which you can build on if you want to.
Quick question: am I correct in thinking that this code, while it uses Hugs, won't actually run from Hugs, due to lack of piping support in Hugs?
participants (2)
-
John Goerzen
-
Nils Anders Danielsson