Since the return type of foo Func is IO String andfirst case statement has "return timedVal", I think that ghc expects the type of timedVal as String.However, the error message shows thatghc expects timedVal should have type IO b0.