Convert a string representing a binary number to a base 10 string haskell
I have the string "1001" and I want the string "9".

The numeric library has the (rather clunky) showIntAtBase, but I haven't been able to find the opposite.
Convert a string representing a binary number to a base 10 string haskell
===

I have the string "1001" and I want the string "9".

The numeric library has the (rather clunky) showIntAtBase, but I haven't been able to find the opposite.