Overview

  • Problem
    • Haskell programs have no side effects, but interactive programs have
  • Solution
    • Types
      • Pure expressions
      • Impure actions
        • IO a

Basic Actions

  • getChar :: IO Char
  • putChar :: Char -> IO ()
  • return :: a -> IO a

Sequencing

Combine a sequence of actions into a single composite using do.

results matching ""

    No results matching ""