Skip to content
Snippets Groups Projects

Swap `curry` and `uncurry` to be consistent with Haskell and friends.

Merged Robbert Krebbers requested to merge robbert/curry into master
All threads resolved!

This also applies to (un)curry{3,4}, gmap_(un)curry, and h(un)curry.

This fixes issue #76 (closed).

The code includes a horrible hack that should removed once support for Coq versions prior to 8.13 is dropped, see https://github.com/coq/coq/pull/12716.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Ralf Jung
  • added 1 commit

    Compare with previous version

  • Ralf Jung
  • Robbert Krebbers added 9 commits

    added 9 commits

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Robbert Krebbers resolved all threads

    resolved all threads

  • mentioned in commit e2c65b35

  • @iris-users this is a breaking change:

    • Swap names of curry/uncurry, curry3/uncurry3, curry4/uncurry4, gmap_curry/gmap_uncurry, and hcurry/huncurry to be consistent with Haskell and friends.

    A sed script to help porting:

    sed -i -E '
    s/\b(lookup_gmap_|gmap_|h|)curry(|3|4)\b/OLD\1curry\2/g
    s/\b(lookup_gmap_|gmap_|h|)uncurry(|3|4)\b/\1curry\2/g
    s/\bOLD(lookup_gmap_|gmap_|h|)curry(|3|4)\b/\1uncurry\2/g
    s/\bgmap_curry_uncurry\b/gmap_uncurry_curry/g
    s/\bgmap_uncurry_non_empty\b/gmap_curry_non_empty/g
    s/\bgmap_uncurry_curry_non_empty\b/gmap_curry_uncurry_non_empty/g
    s/\bhcurry_uncurry\b/huncurry_curry/g
    ' $(find theories -name "*.v")
  • Please register or sign in to reply
    Loading