文字列を haskell の式として評価する関数はないのでしょうか > System.Eval.Haskell っていうのがそうか。
$ ghci Prelude> :m System.Eval.Haskell Prelude System.Eval.Haskell> eval "1 + 2 :: Int" [] :: IO (Maybe Int) Nothing
うぐぐ、インストール苦労したのに
darcs get --set-scripts-executable http://www.cse.unsw.edu.au/~dons/code/hs-plugins
のソースを使ったら動いた。仕組みも使い方もさっぱりだけど。