mrkgnao 2017-01-28 23:45:15
I recommend reading a tutorial on doing IO in Haskell, though.
mrkgnao 2017-01-28 23:45:34
anyway, with the string in hand, you can use `read`.
mrkgnao 2017-01-28 23:45:46
> (read "70") :: Int
lambdabot 2017-01-28 23:45:49
70
miladz89_ 2017-01-29 00:06:43
I have a probelm with haskell automated testing, full question here on stackoverflow : http://stackoverflow.com/questions/41920181/haskell-automated-test-configuration
miladz89_ 2017-01-29 00:07:25
basically the problem is that I want to automatically changed some configuration when I am testing.
miladz89_ 2017-01-29 00:08:25
for example I want the string ' mongoHostAdress = "192.168.0.1" ' to change to mongoHostAdress = "127.0.0.1" when I am testing