After reading in a string from a file, my function returns a IO [Char] type.
How can I use this data with functions that require a [Char] or [ a ] ?
For example, the display function returns a string read from the file:
MatIO> display
"SQ345 ","10","10","08","05","Manchester","Singapore"
But if I try to reverse it:
MatIO> reverse display
ERROR - Type error in application
*** Expression : reverse display
*** Term : display
*** Type : IO [Char]
*** Does not match : [ a ]
How can I get around this issue?
- CheeseMonger
Edit: Bloody BB tags...
[edited by - CheeseMonger on February 21, 2004 2:33:27 PM]
[edited by - CheeseMonger on February 21, 2004 2:34:03 PM]
[edited by - CheeseMonger on February 21, 2004 2:34:51 PM]