Commit Graph
100 Commits
Author SHA1 Message Date
Joel Kaasinen 15ae9d58f3 lecture 14: fix typo / simplify 2022-08-19 22:05:17 +03:00
Joel Kaasinen 9269b95d9a Set 10b Ex 4: don't use not in example 2022-05-26 19:50:13 +03:00
Joel Kaasinen 8209cc9496 Add even and odd to VeryLimitedPrelude
since they are used in the Set 10b examples
2022-05-26 19:49:52 +03:00
Joel Kaasinen e81bca2c3c make cabal work again
... by hardcoding stackage lts-18.18 versions in tests.cabal
2022-05-16 16:32:08 +03:00
Joel Kaasinen 45c4d221e0 img: fix bounding box for square1.svg
fixes #49
2022-05-16 15:59:48 +03:00
Joel Kaasinen dfa8921b3a Set 7: mention that NonEmpty is imported already
closes #42
2022-03-26 15:34:39 +02:00
Joel Kaasinen 2cb5e54ce7 lecture 3: new section "Something Useful: Typed Holes" 2022-03-19 08:48:59 +02:00
Joel Kaasinen ebebe006c0 lecture 2: new section "When to Use Case Expressions" 2022-03-10 08:15:38 +02:00
Joel Kaasinen 7eb96362b4 Set 11a: allow Data.Functor import 2022-02-13 22:09:53 +02:00
Joel Kaasinen 020cbfd199 lecture 1: add note about ghci arm bug
closes #43
2022-01-22 11:03:20 +02:00
Joel Kaasinen 4163ef6f3c lecture 14: mention Only 2022-01-22 10:54:42 +02:00
Joel Kaasinen 7e4f3518fb use simpler x = y syntax in GHCi
instead of let x = y
2022-01-22 10:38:54 +02:00
Joel Kaasinen 664b19f8f1 Set 3a Ex 8: be consistent about argument name 2022-01-18 22:03:11 +02:00
Joel Kaasinen e6bfe14cb1 Set 3a Ex 8: add example 2022-01-18 21:59:20 +02:00
Joel Kaasinen 8e8cec7247 Set 3a Ex 8: add hint 2022-01-18 21:38:41 +02:00
Joel Kaasinen 3afea0be44 Set 9a Ex 1: fix typo 2021-12-12 16:54:15 +02:00
Joel Kaasinen 6f5c923450 Set 8 Ex 3: better example 2021-12-02 17:52:46 +02:00
Joel Kaasinen c9f4f574ad lecture 9: new quiz question 2021-08-18 19:07:20 +03:00
Joel Kaasinen cb2b64988a Set 4a Ex 1: one more test 2021-08-18 19:02:10 +03:00
Joel Kaasinen 8561b73fda Set 9a Ex 9: rewrite task, fix typo in test 2021-08-16 19:43:21 +03:00
Joel Kaasinen a8868f1d5f Set 9a Ex 9: fix test 2021-08-16 17:10:49 +03:00
Joel Kaasinen b81d7e6ed4 Set 9a Ex 9: fix example
closes #37
2021-08-14 20:56:16 +03:00
Joel Kaasinen 5674f579c8 Set 9a Ex 9: fix definition of multiplu 2021-08-10 20:38:43 +03:00
Joel Kaasinen c1b9dc5724 Set 9b Ex 6: add case for queen outside board 2021-08-09 18:24:07 +03:00
Joel Kaasinen e89b54a1af lecture 13, set 13a: clarifications 2021-08-09 18:17:40 +03:00
Joel Kaasinen ecdecda5d2 lecture 13: make comments overflow less 2021-08-09 18:13:02 +03:00
Joel Kaasinen 5d92362ad4 lecture 16: links to exercises, feedback 2021-08-09 18:05:52 +03:00
Joel Kaasinen 26fb33cb5b misc typos 2021-08-09 17:58:40 +03:00
Joel Kaasinen ae99a40e54 Set 10b: mention seq 2021-08-09 17:54:03 +03:00
Joel Kaasinen 1edfef09d4 Set 9b: fix typo 2021-08-09 17:50:15 +03:00
Joel Kaasinen f6b713d8e8 Set 5a: better error message for weird constructors 2021-08-09 17:48:05 +03:00
Joel Kaasinen ccd968d8c9 lecture 3: precision in quiz 2021-08-09 17:45:37 +03:00
Joel Kaasinen 04b210b73e part 2: improvements to lecture 12 and 15 2021-08-09 17:43:59 +03:00
Joel Kaasinen cbcbcc8332 Set 9: new Ex 9 2021-08-09 17:42:54 +03:00
Joel Kaasinen 47f6f9cc0b lecture 15: fix liftA2 definition 2021-06-25 19:19:42 +03:00
Joel Kaasinen 0a4bb1fc4e part2: typos 2021-06-21 17:30:57 +03:00
Joel Kaasinen 4a2d1f2f5b Set 15: make test order match exercise numbers 2021-06-21 17:28:34 +03:00
Joel Kaasinen de3d8759b9 Set 11b: fix exercise numbering 2021-06-21 17:27:18 +03:00
Joel Kaasinen dec492bfa0 Set 13a Ex 1: fix example 2021-06-19 22:21:27 +03:00
Joel Kaasinen eb361cdaa1 fix imports in Set 14b, fix typo in lecture 14 2021-06-19 22:20:12 +03:00
Joel Kaasinen a33c7cf377 Set 4a Ex 5: reword, add challenge 2021-06-19 22:17:14 +03:00
Joel Kaasinen 580b512db0 Move Set 11b Ex 5 to Set 13b 2021-06-19 22:11:02 +03:00
Joel Kaasinen 5e294d47c1 lecture 11: add a sentence to 11.4 2021-06-19 22:08:23 +03:00
Joel Kaasinen 60386aa65e Set 9a: isSpace 2021-06-19 22:04:09 +03:00
Joel Kaasinen 017af9d323 part2: a bit more about category theory 2021-06-19 21:59:51 +03:00
Joel Kaasinen 4a41bdfa3f lecture 12: fix Functor Maybe example
don't use InstanceSigs
2021-06-19 21:37:29 +03:00
Joel Kaasinen f51854be4d Set 9b Ex 8: don't use out-of-bounds coordinates in example 2021-06-17 19:47:19 +03:00
Joel Kaasinen afa9d14683 Set 13a Ex 9: fix template 2021-06-17 19:33:07 +03:00
Joel Kaasinen 8d839d9c45 img: nicer bounding boxes for square[12].svg 2021-06-09 18:27:17 +03:00
Joel Kaasinen c2a165d27c lecture 13: fix increase example
closes #36
2021-06-09 18:21:01 +03:00
Joel Kaasinen e479312849 lecture 11: clarify quiz question 2021-06-09 18:15:42 +03:00
Joel Kaasinen 833584f8b0 clarifications to Set10a, lecture 10 2021-06-09 17:54:53 +03:00
Joel Kaasinen 1b5e6bccd3 Set 16a Ex 6: one more test case
thanks to @Preoo

fixes #35
2021-06-07 21:33:24 +03:00
Joel Kaasinen d39c61c784 part1: update link for John Backus paper 2021-06-07 21:28:03 +03:00
Joel Kaasinen d64d8cce34 Set 10a: import Data.List 2021-06-07 21:26:07 +03:00
Joel Kaasinen 857248a2fe Set 10a Ex 8: add todo 2021-06-07 21:25:32 +03:00
Joel Kaasinen f4edd6aaca Set 10a Ex 7: clarify text 2021-06-07 21:24:59 +03:00
Joel Kaasinen 3ac0f330aa lecture 15: fix quiz 2021-06-05 13:08:14 +03:00
Joel Kaasinen a10ad239c0 lecture 14: use TL/BL consistently 2021-06-04 13:51:40 +03:00
Joel Kaasinen 8af9dd1cd4 lecture 14: sync text with example
fixes #33
2021-06-04 08:05:08 +03:00
Joel Kaasinen 83e820ddcd add missing dependency
so that `:load Set14b.hs` works in `stack ghci`

fixes #32
2021-06-03 15:11:39 +03:00
Joel Kaasinen 87bf8ebf3d Set 15: fix typo 2021-06-03 08:46:31 +03:00
Joel Kaasinen fc6670267c Set 9a Ex 9: clarify text, add test
for #31
2021-06-02 17:23:42 +03:00
Joel Kaasinen 5a09751913 Set 4a Ex 9: test smaller lists
to admit O(2^n) solutions
2021-06-02 17:03:46 +03:00
Joel Kaasinen 4266c5fdba Set 15 Ex 7: avoid hexadecimal and octal
closes #29
2021-06-02 09:42:18 +03:00
Joel Kaasinen 34aba18061 update 1.1 About the course 2021-06-01 15:40:21 +03:00
Joel Kaasinen ab348c7122 Set 16a: "Gave up!" is not the same as failed 2021-06-01 11:19:00 +03:00
Joel Kaasinen 49e58b63ca lecture 16 2021-06-01 10:31:19 +03:00
Joel Kaasinen 73959e4851 Set 14b: fix references to Set14b.hs 2021-06-01 08:32:16 +03:00
Joel Kaasinen 44e28b2bc1 update intro to part2 2021-05-28 09:52:55 +03:00
Joel Kaasinen 86b0084bf5 update hackage links 2021-05-28 09:51:42 +03:00
Joel Kaasinen 9ac4c48243 remove dependency on hedgehog 2021-05-28 08:53:34 +03:00
Joel Kaasinen f0efbae312 lecture 15: expand on 15.8 2021-05-27 11:16:01 +03:00
Joel Kaasinen ab4e6a965f style.css: add more margin to h1 2021-05-27 10:33:48 +03:00
Joel Kaasinen 05cbb774f7 lecture 15 2021-05-27 10:32:40 +03:00
Joel Kaasinen ad7b8edb45 Set 9b Ex 4: test deeper stacks 2021-05-24 08:08:32 +03:00
Joel Kaasinen 92d27bf6e4 Set 3a Ex 7&8: better error messages for infinite loops 2021-05-24 07:35:12 +03:00
Joel Kaasinen 8f6a8d3fd2 Set 11b Ex 6&7: avoid closing input handle prematurely
Should prevent 'illegal operation (delayed read on closed handle)'
errors.
2021-05-24 07:29:56 +03:00
Joel Kaasinen 897591c76b lecture 9: fix type of (==) 2021-05-11 15:42:28 +03:00
Joel Kaasinen f0722a3a8d Set 14a Ex 3: avoid bad test cases while shrinking 2021-05-05 07:54:57 +03:00
Joel Kaasinen 81e2914a15 part2: lecture 14 2021-05-03 09:21:18 +03:00
Joel Kaasinen e4efda28fb part2: remove TODO 2021-05-03 09:16:45 +03:00
Joel Kaasinen d5edf0b902 upgrade to stackage snapshot lts-17.10, GHC 8.10.4 2021-05-03 09:16:01 +03:00
Joel Kaasinen 1a58de3de2 style.css: fix width of ul 2021-05-03 09:14:53 +03:00
Joel Kaasinen b7aaa1bd89 Set 11b: avoid Too many open files error in tests 2021-04-27 16:09:14 +03:00
Joel Kaasinen 10609cad55 Set 10a Ex 4: new exercise 2021-04-26 15:34:20 +03:00
Joel Kaasinen 5bd7d338af Set 10a Ex 7: remove misleading data declaration from template 2021-04-13 09:18:07 +03:00
Joel Kaasinen 426f7de8cb Set12: add todo definitions to avoid infinite loop in tests 2021-04-13 09:07:57 +03:00
Joel Kaasinen e38c1e16c5 lecture 12: fix quiz 2021-04-13 09:05:23 +03:00
Joel Kaasinen fe8224de92 lecture 10: fix quiz 2021-04-13 09:02:00 +03:00
Joel Kaasinen 5217c9de5d lecture 9: fix typos, add recap of working on the exercises 2021-04-13 08:58:56 +03:00
Joel Kaasinen fbd2b2b939 part1: fix some typos 2021-04-13 08:49:56 +03:00
Joel Kaasinen 57df216b76 Set 3b Ex 14: remove unnecessary comment 2021-04-13 08:47:43 +03:00
Joel Kaasinen 23629296d1 part1: mention part2 2021-03-29 18:31:43 +03:00
Joel Kaasinen 7097ec804b lecture 13: mention the if-result pattern 2021-03-29 09:32:00 +03:00
Joel Kaasinen cfcd8b2526 add some dependencies
in preparation for expanding part2
2021-03-29 09:22:55 +03:00
Joel Kaasinen e32376a640 add text & bytestring dependencies 2021-03-23 12:31:32 +02:00
Joel Kaasinen c9a6dfb831 lecture 12: fix typo in mapTree definition 2021-03-22 08:43:42 +02:00
Joel Kaasinen 506264db37 Set 9b Ex 2: try to clarify 2021-03-22 08:39:33 +02:00
Joel Kaasinen 0963326ccf lecture 10: clarify referential transparency 2021-03-17 16:44:38 +02:00