Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve doctests #242

Merged
merged 1 commit into from
Sep 26, 2023
Merged

Improve doctests #242

merged 1 commit into from
Sep 26, 2023

Conversation

j6carey
Copy link
Collaborator

@j6carey j6carey commented Sep 25, 2023

  1. Actually run the doctests in "Tutorial.hs". This commit also updates those doctests to match current expected types and behavior.

  2. Convert doctests in test-only code to ordinary unit tests because:

a. Because they are in test-only code they do not actually provide
any documentation despite being expressed as doctests, and

b. It seems that doctests tend to be fragile when upgrading GHC or
dependencies, especially the ones found in "TestCodeGen.hs".

1. Actually run the doctests in "Tutorial.hs".
   This commit also updates those doctests to
   match current expected types and behavior.

2. Convert doctests in test-only code to ordinary unit tests because:

  a. Because they are in test-only code they do not actually provide
     any documentation despite being expressed as doctests, and

  b. It seems that doctests tend to be fragile when upgrading GHC or
     dependencies, especially the ones found in "TestCodeGen.hs".
@j6carey j6carey requested a review from riz0id September 25, 2023 22:44
@j6carey j6carey merged commit a93165d into master Sep 26, 2023
6 checks passed
@j6carey j6carey deleted the jcarey-improve-doctests-2023 branch September 26, 2023 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants