? Important notice: This course continues BAU even after Hacktoberfest ?
You can find the results of Hacktoberfest 2020 for Learn4Haskell in the following blog post:
It's the time of the year when thousand pull requests are starting to float in the air like a leaf on the wind ?
It's Hacktoberfest! And we are happy to be part of this fantastic event.
Usually, people contribute to projects within the communities they spend most of their time already and don't try to go out of those boundaries. But why not use this time to learn something challenging, something fresh, something that you never had time for?
You can get the benefits of Hacktoberfest while learning something new fascinating concepts – Functional Programming with Haskell.
And we're here to help!
Learn4Haskell is a GitHub-located course that will get you into the Haskell Functional Programming world in just 4 Pull Requests.
This course is organised as a coding project. So you can complete the course without needing to exit your editor.
This works in the following way. When you decide to start the project, all you need to do is to fork the project. We have prepared 4 separate modules — chapters. Each part contains educational material and lots of examples that we provide in a simple form that doesn't require you to know anything about functional programming beforehand. Also, each chapter contains several exercises on everything that is explained by us. You can solve the tasks on your way and at the end open a PR to your fork with this chapter's solution and summon us (by shouting out our nicknames there). We would be happy to give you feedback on your progress, explain problematic concepts or just support you mentally!
Each chapter contains unique information and covers different topics. We suggest going through them in order. However, if you think that some of the chapters are already familiar to you, feel free to skip onto the next one. If you would like to talk to us, you can even rely on PRs for the chapter you have questions about.
Chapters are stuffed with information but are aimed to be completed without additional resources. You may spend an evening per chapter, but we swear it's worth it!
At the end of the course, you should be able to independently create and read basic Haskell code and understand Monads and other famous concepts of Functional Programming.
Here is a more concrete plan of the mystical 4 Chapters we prepared for you. These are the highlights of each part.
We created the Learn4Haskell project in pursuit of the following goals:
We welcome everyone and would be happy to assist you in this journey!
The course is intended for people who don't know Haskell or know only language basics, though.
If you are already an experienced Haskell developer and have come here for learning advanced topics, this course might not be that for you. But you still can help us! Your feedback and suggestions would be helpful for us as well as for the language newcomers who decide to work with this course.
This course has many benefits upon completion. Check them out to be sure that it fits your expectations!
Participation in this course would give you:
Honestly, this seems like a pretty rad deal!
Starting to learn Haskell with Learn4Haskell is a piece of cake!
hacktoberfesttopic to your fork. Otherwise, your PRs won't count.
src/Chapter1.hsfile, and start learning and solving tasks!
Note, that you should open a PR for your fork of this repo, not this repo. Everyone has their solutions to the included tasks, and they don't mix together well in one repo ?
However, if you find some bugs or problems in this repo, you can open a PR to Learn4Haskell directly. We appreciate any help and feedback!
Learn4Haskell has 4 chapters that you can walk through and submit 4 pull requests to complete the Hacktoberfest event (or just for knowledge and your enjoyment).
So, you can start right now with forking. Following this we'll describe how you can install all the necessary items to be able to run this course locally.
If you're on Windows, install the
make packages using Chocolatey.
choco install haskell-dev make refreshenv
If you're on Linux or macOS, then the process is easy:
Install ghcup and follow
instructions for successful installation (remember to restart your terminal afterwards to avoid an
unknown ghcup command error on the next step).
Install the latest version of the Haskell compiler — GHC — and the
Cabal build tool. After you install
ghcup, it is easy to install the rest with a few commands from your
ghcup install ghc 8.10.4 ghcup set ghc 8.10.4 ghcup install cabal 18.104.22.168
cabal update to fetch the latest info about Haskell packages.
If you don't have any IDE preferences, we recommend installing Visual Studio Code with the Haskell plugin. The mentioned plugin would give you everything required to immediately start coding with Haskell.
Gitpod is a VSCode-based Web IDE. With it, you can get a Haskell environment out-of-the-box. It's free to use up to 50 hours per month.
gitpod.io# to your repo URL and you are ready to go.
It will take some time to initialize the workspace for the first time it opens.
It only keeps changes under
/workspace, and it will be deleted after a period of inactivity unless it's pinned.
The course assumes that you install Haskell tooling (GHC and Cabal), edit code in the corresponding chapters, run GHCi (Haskell interpreter, explained in the course) from the root of this project and load your chapters to check your code. Don't worry, each chapter explains all the needed information!
We also provide a Makefile with commands to test your solutions locally with the included prepared test-suite. We have also configured the CI using GitHub Actions on Learn4Haskell to check your answers at GitHub automatically!
To run all tests for Chapter One:
To run tests only for basic tasks for Chapter One (without the advanced tasks):
Similar commands are provided for all chapters from One to Four.
Veronika (@vrom911) and Dmitrii (@chshersh) are experienced Haskell developers. Together we drive this open source organisation — Kowainik. We have a lot of open source projects and libraries in Haskell that are used in the Haskell community. We are also working on a lot of tutorials and guides in Haskell and mentoring people who are keen to learn Haskell as well. Moreover, Dmitrii has a few years of experience teaching Haskell courses in the university to CS students.
We are passionate about Functional Programming and Haskell in particular. But at the same time, we understand how difficult it can be to get into all these ideas on your own. That is why we've decided to start this course to help newcomers. With the interactive learning process and live discussions we've included, Haskell will not be that scary. We will do our best so that it especially won't be the case for you or any others participating here!
You can help us by supporting us on Ko-Fi or via GitHub sponsorship program:
We also appreciate any feedback on our course a lot! You can submit your feedback using the following form: