Haskell String-> Int Type Conversion

Viewed 96720

I'm taking my first few steps in Haskell, and I'm trying to convert a string to an integer, but I'm not managing. I've looked at similar questions and I'm still not sure.

All I want to do is convert, e.g. '6' or "271" to integers, that is, 6 or 271 respectively. How do I do this?

The analogue would be that in Python, I could do this easily: e.g.int("2723") would get the job done.

1 Answers
Related