How can I use pure functions inside IO functions? :-/
For example: I\'m reading a file (IO function) and I want to parse its context, a string, by using a pure funct
The actual answer is as follows:
main = do val <- return (purefunc ...arguments...) ...more..actions...
return wraps it in the appropriate monad so that do can assign it to val.
return
do
val