Haskell - Workspace Guide
Workflow for solving tasks and keeping them in the notes. Related: Lecture 1 - Intro to Functional Programming, Haskell - Polymorphism Rule of Thumb
Layout
haskell/- the devenv (Nix) environment with GHC. Don’t move it.haskell/lectureNN/preparation.hs(prep sheet) andexercises.hs- solve tasks here (one folder per lecture, one section per task with-- ===== Task X =====headers).Notes/Lecture N - Haskell Exercises.md- auto-generated note per lecture, holding all code from that folder.
Workflow
- In
haskell/, rundevenv shell(or use direnv). - Solve tasks in
lectureNN/exercises.hs; test withghci file.hsorrunghc file.hs. Use-- >>> exprcomments to record results. - Run
sync-notes(orbash sync-notes.sh) to refresh the exercise notes. - New lecture: create
haskell/lecture14/with your .hs files, then sync - a new note appears automatically.
Tip: keep the task text as comments above each solution so the note is self-contained.