Commit Graph
100 Commits
Author SHA1 Message Date
Joel Kaasinen 7223186016 try to avoid "too many open files" when running tests 2021-02-05 17:15:56 +02:00
Joel Kaasinen 971ce141aa Set 9b Ex9: decrease test input size 2021-02-05 17:06:32 +02:00
Joel Kaasinen dd4006e2c3 make exercise names unique 2021-02-05 15:37:24 +02:00
Joel Kaasinen 4ac9ff052b publish part2 preview! 2021-02-05 09:42:17 +02:00
Joel Kaasinen 5a8da034f3 upgrade stackage snapshot to lts-16.31, GHC 8.8.4 2021-02-05 09:34:45 +02:00
Joel Kaasinen 405f0c996a add HTTP dependency 2021-02-04 15:08:27 +02:00
Joel Kaasinen 05980e2ebf Set 6 Ex 6: improve tests 2021-02-04 13:58:01 +02:00
Joel Kaasinen f5b1891c60 add transformers dependency 2021-02-03 16:42:07 +02:00
Joel Kaasinen 97db6d8ed2 some additions to test helpers 2021-01-28 11:08:17 +02:00
Joel Kaasinen 43315919c4 LimitedPrelude: add boolean operations 2021-01-20 15:50:48 +02:00
Joel Kaasinen b44907703d lecture 3: more examples of nested list patterns 2021-01-20 15:15:49 +02:00
Joel Kaasinen 27c3402b99 lecture 6: fix typo in Eq IntPair example 2021-01-18 15:39:20 +02:00
Joel Kaasinen cd484a282a Set3b: make the Integral type class (containing e.g. div) available 2021-01-12 17:52:54 +02:00
Joel Kaasinen 6a495c0951 lecture 4: reword a bit 2021-01-12 08:55:46 +02:00
Joel Kaasinen 9f7ad9dac8 Set 8 Ex 4: fix typo in test failure output 2021-01-11 20:14:49 +02:00
Joel Kaasinen f2561b375d lecture 3: 3.12.1 Common Errors 2021-01-11 15:33:52 +02:00
Joel Kaasinen c7e08a67bf lecture 6: improve section 6.5 Hierarchies 2021-01-11 15:06:19 +02:00
Joel Kaasinen 5bb429484e Set8: flip output of renderList
renderList was putting smaller y coordinates at the bottom of the
image, now they are at the top, just like in png outputs
2021-01-11 15:05:29 +02:00
Joel Kaasinen 03be3593b7 lecture 4: talk a bit about number literals 2021-01-11 10:52:42 +02:00
Joel Kaasinen 2e1d292f04 lecture 2: fix typos
closes #17
2021-01-08 14:36:37 +02:00
Joel Kaasinen c1032037ba part1: more consistent capitalization 2021-01-08 09:56:58 +02:00
Joel Kaasinen b685b32522 part1: fix typos 2021-01-08 09:56:11 +02:00
Joel Kaasinen af36c1f4e5 better error messages from testing macros for unbound vars 2021-01-07 15:42:54 +02:00
Joel Kaasinen fa2b1c780c Set 2a Ex 2: test case n > length xs
fixes #18
2021-01-02 21:54:28 +02:00
Joel Kaasinen 37bdae8850 Set 4b Ex 4: fix typo
fixes #21
2021-01-02 21:49:36 +02:00
Joel Kaasinen 9f87a8f7e2 lecture 4: fix formatting
fixes #20
2021-01-02 21:47:27 +02:00
Joel Kaasinen 6265487231 some additions to testing utilities in preparation for part2 2020-12-22 18:30:26 +02:00
Joel Kaasinen 02b2edee41 Set 6 Ex 12: try to clarify 2020-12-22 17:13:03 +02:00
Joel Kaasinen c539d12880 Set 6 Ex 6: add example 2020-12-22 09:01:23 +02:00
Joel Kaasinen ad3ac92068 lecture 4: fix typo 2020-12-12 08:18:53 +02:00
Joel Kaasinen fcad769f2a part1: add attribution for John 2020-12-11 19:32:01 +02:00
Joel Kaasinen d18ff4d805 part1: consistently Title Case headings 2020-12-11 19:30:02 +02:00
Joel Kaasinen b88f7882c9 Set8: explain coordinate system better 2020-12-11 14:45:22 +02:00
Joel Kaasinen 823a07eb40 some additions to testing utilities in preparation for part2 2020-12-11 14:45:00 +02:00
Joel Kaasinen 8971887e30 lecture 4: explain immutability of maps better 2020-12-09 11:18:05 +02:00
Joel Kaasinen 211a6433ff Set 6 Ex 5: try to clarify 2020-12-01 10:04:38 +02:00
Joel Kaasinen d89dd90961 Set 3a Ex 6: longer test cases 2020-11-23 19:10:44 +02:00
Joel Kaasinen fd8cc094a7 Set 7 Ex 3: test Error->Error state transition
closes #15
2020-11-23 18:59:11 +02:00
Joel Kaasinen 461700446c add missing package dependencies
for some reason, `stack ghci foo.hs` doesn't complain about these, but
`stack ghci` followed by `load foo.hs` does

fixes #14
2020-11-21 09:35:21 +02:00
Joel Kaasinen f388b4714d style: fix weird code block rendering issues on safari
thanks @anttti

closes #8, fixes #13
2020-11-16 13:16:12 +02:00
Joel Kaasinen 354db44337 Set 5b Ex 10: make exercise text match tests 2020-11-11 20:32:33 +02:00
Joel Kaasinen 3b2a178b4b README.md: mention stack build 2020-11-06 10:29:10 +02:00
Joel Kaasinen 35c0c20e8a Set 4a Ex 8: fix rare failure in test 2020-11-03 12:09:33 +02:00
Joel Kaasinen 40a9903990 Set 4a Ex 8: try to clarify corner case 2020-11-03 12:05:27 +02:00
Joel Kaasinen 0cbf61a637 add contributing instructions 2020-11-03 12:00:45 +02:00
Joel Kaasinen 76f78e798b lecture 4: fix foldr examples
fixes #11
2020-11-03 11:53:51 +02:00
Joel Kaasinen 3708d5786c lecture 3: fix typo
fixes #10
2020-11-03 11:50:54 +02:00
Joel Kaasinen 690c964baf lecture 1: fix typo
closes #9
2020-11-03 11:48:58 +02:00
Joel Kaasinen 749a740332 Set 3a Ex 8: remove unnecessary hint 2020-10-10 10:15:19 +03:00
Joel Kaasinen ef8188629a Set 3b Ex 4: forgot to enable one test case 2020-10-10 10:12:01 +03:00
Joel Kaasinen c2c9a2df5f update README.md 2020-10-10 10:00:58 +03:00
Joel Kaasinen 14f687078d add timeouts to tests to catch infinite loops 2020-10-02 13:46:07 +03:00
Joel Kaasinen b0a3876bbf lecture 2: mention the init function 2020-09-21 09:11:29 +03:00
Joel Kaasinen 4285f701fd Set2a: fix typo & indentation of examples
closes #7
2020-09-21 09:07:12 +03:00
Joel Kaasinen 362314d158 part1: mention Nitor 2020-09-17 08:18:43 +03:00
Joel Kaasinen f1c3d2128c part1: more on pattern matching 2020-09-16 10:36:47 +03:00
Joel Kaasinen 332937b1e5 lecture 4: link to right version of containers docs 2020-09-11 10:04:51 +03:00
Joel Kaasinen 26b21b234e Set 2b Ex 6: add hint 2020-09-11 09:48:12 +03:00
Joel Kaasinen d5b59d55db style.css: cursor:pointer for quiz 2020-09-11 09:46:25 +03:00
Joel Kaasinen 37f944598f lecture 1: fix typo 2020-09-11 09:45:02 +03:00
Joel Kaasinen 1cb296b7ad Set 5a Ex 12: fix test description 2020-09-11 09:05:40 +03:00
Joel Kaasinen 22b30c5f6b Set 6: make tests run with empty answers 2020-09-03 10:47:09 +03:00
Joel Kaasinen 6956640b93 part1: final adjustments before release 2020-08-31 16:11:14 +03:00
Joel Kaasinen df150e7197 style: minor fix 2020-08-24 14:57:19 +03:00
Joel Kaasinen d65079c57d lecture 1: break lines in an example 2020-08-24 14:28:25 +03:00
Joel Kaasinen 3f26433ebe style: adjust code block styling 2020-08-24 14:25:21 +03:00
Joel Kaasinen e958b59583 style: add a:hover and a:focus styles 2020-08-24 14:16:51 +03:00
Joel Kaasinen 6b33bf6898 part1.html: add MENU placeholder 2020-08-24 14:02:00 +03:00
Joel Kaasinen a0af3b25e4 style.css: new cooler style 2020-08-24 13:46:22 +03:00
Joel Kaasinen 1db330b95d Set 3a Ex 14: expound on surprise 2020-08-24 12:36:50 +03:00
Joel Kaasinen 63c92a8cd8 lecture 3: "Tail recursion and lists" 2020-08-24 12:34:17 +03:00
Joel Kaasinen d98e825b08 exercises: remove stray empty lines 2020-08-24 12:33:53 +03:00
Joel Kaasinen 903f6281cf lecture 1: mention model solutions 2020-08-21 15:02:55 +03:00
Joel Kaasinen d05232082a lecture 8: add link 2020-08-18 23:25:31 +03:00
Joel Kaasinen 08ddd78a1e lecture 7: rewrite Monoid section 2020-08-17 11:01:01 +03:00
Joel Kaasinen a76bf40606 lecture 4: try to clarify folding 2020-08-14 11:27:22 +03:00
Joel Kaasinen 8ae8980348 new Set 4a Ex 11 2020-08-14 10:45:36 +03:00
Joel Kaasinen f02bb61f6d move case-of from lecture 4 to lecture 2 2020-08-14 10:21:48 +03:00
Joel Kaasinen 5486b1071b Set 7 Ex 3: clarify 2020-08-11 14:49:07 +03:00
Joel Kaasinen be7041a4fa lecture 3: introduce const, add two quizes 2020-08-11 14:14:58 +03:00
Joel Kaasinen 0ce0e8b5ba add challenges and clarifications to some exercises 2020-08-11 14:14:39 +03:00
Joel Kaasinen a075e4ddb1 Set 5a Ex 12: add missing instances 2020-08-04 19:04:08 +03:00
Joel Kaasinen 9edcefe899 lecture 6: fix confusion with Main/Sub 2020-08-02 14:26:52 +03:00
Joel Kaasinen 78ae3a474a new Set 5a Ex 12, improve tests Set 6 Ex 7, renumber Set 4 2020-08-02 14:21:23 +03:00
Joel Kaasinen dee7fd75d9 svg versions of diagrams 2020-07-29 18:30:49 +03:00
Joel Kaasinen 602e58277c Set 3a Ex 8: add hint 2020-07-29 18:04:28 +03:00
Joel Kaasinen d25e2c8c64 fix grammar 2020-07-29 18:03:34 +03:00
Joel Kaasinen 534a53592d lecture 7: more NonEmpty examples 2020-07-23 16:20:00 +03:00
Joel Kaasinen 7e863e5296 fix typos, mention encpsulation in 7.1 2020-07-23 15:31:33 +03:00
Joel Kaasinen 78a782c28e lecture 3: clarify contract of findSubstring, introduce id 2020-07-23 15:13:57 +03:00
Joel Kaasinen 6b9a96b92e Set 3a Ex 13: better examples 2020-07-23 14:46:30 +03:00
Joel Kaasinen 351f639ddf Set 3a: add Data.Either import 2020-07-23 14:36:48 +03:00
Joel Kaasinen 0f9d0e648d lecture 1: clarifications on working on the exercises 2020-07-23 14:35:10 +03:00
Joel Kaasinen 0d2161dbcd Set 6 Ex 10: fix typo 2020-06-30 16:39:18 +03:00
Joel Kaasinen 0fd0c59dc3 part 1: a couple of sentences on pattern matching 2020-06-30 16:15:49 +03:00
Joel Kaasinen c8f45277ec part 1: fix java example
closes #6
2020-06-30 16:03:27 +03:00
Joel Kaasinen 0212c57ec6 part 1: fix typo
closes #5
2020-06-30 16:02:19 +03:00
Joel Kaasinen 1bc2ae180b Set 7 Ex 5: remove potentially misleading hint
thanks to Joonas Nuutinen
2020-06-30 15:58:11 +03:00
Joel Kaasinen 69f068604c Set 3b Ex 8: less misleading example
thanks to Joonas Nuutinen
2020-06-30 15:52:26 +03:00
Joel Kaasinen 03ab58c295 remove leftover file exercises/Set2Test.hs 2020-06-30 15:49:30 +03:00