[Haskell] evaluate function as a string