{"id":20707119,"url":"https://github.com/code-help-tutor/haskell-pa5","last_synced_at":"2025-12-12T11:29:29.798Z","repository":{"id":234136707,"uuid":"768428693","full_name":"code-help-tutor/Haskell-pa5","owner":"code-help-tutor","description":"Haskell pa5 辅导, code help, CS tutor, WeChat: cstutorcs Email: tutorcs@163.com","archived":false,"fork":false,"pushed_at":"2024-03-07T04:08:53.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T20:29:48.146Z","etag":null,"topics":["haskell","pa5"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/code-help-tutor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-07T04:08:48.000Z","updated_at":"2024-03-07T04:08:56.000Z","dependencies_parsed_at":"2024-04-18T09:30:32.377Z","dependency_job_id":null,"html_url":"https://github.com/code-help-tutor/Haskell-pa5","commit_stats":null,"previous_names":["code-help-tutor/haskell-pa5"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-help-tutor%2FHaskell-pa5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-help-tutor%2FHaskell-pa5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-help-tutor%2FHaskell-pa5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-help-tutor%2FHaskell-pa5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-help-tutor","download_url":"https://codeload.github.com/code-help-tutor/Haskell-pa5/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242974587,"owners_count":20215339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["haskell","pa5"],"created_at":"2024-11-17T01:24:54.062Z","updated_at":"2025-12-12T11:29:24.749Z","avatar_url":"https://github.com/code-help-tutor.png","language":"Haskell","readme":"# Running Haskell Locally\n\nYou should install the [Haskell Platform](https://www.haskell.org/ghcup/).\nWe will be using `cabal` to test our code, so after installing, make sure that you can run\n\n```shell\ncabal\n```\n\nin command line without issue. This will be the sign you are ready to code.\n\n\n## Overview\n\nThis assignment will test your understanding of type classes and polymorphishm.\n\nRecall that the problems require relatively little code ranging from 2 to 15\nlines.  If any function requires more than that, you can be sure that you need\nto rethink your solution.\n\n1. [lib/TypeClasses.hs](/lib/TypeClasses.hs) has skeleton functions with missing bodies\n   that you will fill in,\n2. [test/Test.hs](/test/Test.hs) has some sample tests, and testing code that\n   you will use to check your assignments before submitting.\n\nYou should only need to modify the parts of the files which say:\n\n```haskell\nerror \"TBD: ...\"\n```\n\nwith suitable Haskell code.\n\n**NOTE:** Start early, to avoid any unexpected shocks late in the process.\n\n\n#### Grading\n\nWe have included the points-worth of each question in the comments.\n\n#### Submission\n\nYou must submit the assignment via gradescope. \nSubmit your assignment by uploading the following files only:\n\n- TypeClasses.hs\n\nUnlike our first assignment, the autograder will not look for your files or\notherwise fix your bugs. You may only upload these files and you must ensure\nthey can be loaded.\n\n\n## Assignment Testing and Evaluation\n\nMost of the points, will be awarded automatically, by **evaluating your\nfunctions against a given test suite**.\n\n[Test.hs](/test/Test.hs) contains a very small suite of tests which gives you\na flavor of of these tests.  When you run\n\n```shell\n$ cabal test\n```\n\nYour last lines should have\n\n```\nAll N tests passed (...)\nOVERALL SCORE = ... / ...\n```\n\n**OR**\n\n```\nK out of N tests failed\nOVERALL SCORE = ... / ...\n```\n\n**If your output does not have one of the above outputs your submission will receive a 0.**\n\nIf, for some problem, you cannot get the code to compile, leave it as is with\nthe `error ...` with your partial solution enclosed below as a comment.\n\nThe other lines will give you a readout for each test.\nYou are encouraged to try to understand the testing code, but you will not be\ngraded on this.# Haskell pa5\n\n# WeChat: cstutorcs\n\n# QQ: 749389476\n\n# Email: tutorcs@163.com\n\n# Computer Science Tutor\n\n# Programming Code Help\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-help-tutor%2Fhaskell-pa5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-help-tutor%2Fhaskell-pa5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-help-tutor%2Fhaskell-pa5/lists"}