Contact FutureLearn for Support
Skip main navigation
We use cookies to give you a better experience, if that’s ok you can close this message and carry on browsing. For more info read our cookies policy.
We use cookies to give you a better experience. Carry on browsing if you're happy with this, or read our cookies policy for more information.

Skip to 0 minutes and 8 secondsJEREMY: Here we are at the end of Week 2 of the functional programming course. This week, we thought about some more building blocks in the Haskell language. We looked at things like if statements and the Boolean data type. We have also had some more exploration of lists and how to manipulate list data structures. Then we moved on to considering monads, particularly getting user input from the keyboard and outputting characters to the terminal. Next week, we're going to move on to more advanced constructs in Haskell. But for now, I want to leave you with an implementation challenge. Can you think of some more guessing games-- like Guess the Number or Mastermind, if you're familiar with that board game?

Skip to 1 minute and 3 secondsPost your ideas and links to your implementations in the comments section below. And I'll have fun reading through those. I hope you have Haskell fun, too. And I'm looking forward to seeing you again next week when we'll carry on with our functional programming adventure.

End of Week 2

We now know enough Haskell to be dangerous. In this video, we give some suggestions for simple text-based games you might like to develop — probably adapting the Starman game we looked at this week.

Please post your ideas in the comments. If you have a github repo, pastebin or similar, then we’d be keen to inspect your code too.

Share this video:

This video is from the free online course:

Functional Programming in Haskell: Supercharge Your Coding

University of Glasgow

Course highlights Get a taste of this course before you join:

  • Haskell history poster
    Brief History of Haskell
    article

    What are the origins of the Haskell programming language? In this article, Dr Jeremy Singer explores the history of Haskell.