In GHCi, I try to read string as tuple.
>reads "(1,2)" :: [(Integer),(Integer)]
which outputs the error:
Couldn't match type [Char] with Integer
expected type: [(Integer,Integer)]
actual type: [(Integer,String)]
The example I found online, and works is:
>reads "(34, True),abc" :: [((Integer,Bool),String)]
[((34,True),",abc")]
So why the one I try to create won't work?