Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: chubbychef/programming-in-haskell
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: singleheart/programming-in-haskell
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 2 files changed
  • 2 contributors

Commits on Jan 5, 2025

  1. Correct luhn to work for odd-length numbers

    The last digit of a Luhn number is the checksum, so we have to evaluate from right to left. The current implementation only works for even-length numbers. Check with e.g. [7,3,5,9,1,4,4] - it should be True but outputs False.
    chubbychef authored Jan 5, 2025
    Configuration menu
    Copy the full SHA
    2694c40 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2025

  1. Merge pull request singleheart#9 from chubbychef/patch-1

    Correct luhn to work for odd-length numbers
    singleheart authored Jan 9, 2025
    Configuration menu
    Copy the full SHA
    6b52ce5 View commit details
    Browse the repository at this point in the history
  2. Fix ex7.hs

    fix Applicative
    singleheart authored Jan 9, 2025
    Configuration menu
    Copy the full SHA
    f10c244 View commit details
    Browse the repository at this point in the history
Loading