C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
Download this episode
In Chapter 9, Interactive Programs, Dr. Meijer will teach us how to make programs in Haskell that are side-effecting:
interactive. Haskell programs are pure mathematical functions with no side effects. That said, you want to be able to write Haskell programs that can read input from the keyboard and write output to the screen which are in fact side effects. So, interactive programs have side effects... Interactive programs can be written in Haskell by using types to distinguish pure expressions from impure actions that may involve side effects.
Consider the following:
The type of actions that return values of type a
The type of actions that return a character
The type of purely side effecting actions that return no result value|
Warning: This lecture may contain the use of the term Monad. Do not fear. Everything will be OK.
You should watch these in sequence (or skip around depending on your curent level of knowledge in this domain):
Get the presentation slides here
Available formats for this video:
Actual format may change based on video formats available and browser capability.