Equivalent of python eval in Haskell

Posted by TheMachineCharmer on Stack Overflow See other posts from Stack Overflow or by TheMachineCharmer
Published on 2010-03-18T10:49:34Z Indexed on 2010/03/18 10:51 UTC
Read the original article Hit count: 314

Filed under:
|
|

There is function in python called eval that takes string input and evaluates it.

>>> x = 1
>>> print eval('x+1')
2
>>> print eval('12 + 32')
44
>>>  

What is Haskell equivalent of eval function?

© Stack Overflow or respective owner

Related posts about haskell

Related posts about python