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

Restrict over', iover', and set' to traversals #475

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Dec 28, 2022

  1. Switch to Solo from Identity'

    * The `Identity'` type was non-standard and overly complicated.  The
      `Solo` type, now in `base`, is operationally identical and simpler to
      deal with. Use that instead.
    
    * Remove some surprisingly lazy matches on `Identity'`.
    treeowl committed Dec 28, 2022
    Configuration menu
    Copy the full SHA
    a3b2d99 View commit details
    Browse the repository at this point in the history
  2. Restrict over', iover', and set' to traversals

    * `over'`, `iover'`, `set'`, and associated operators previously
      accepted setters. However, it's impossible to actually modify strictly
      through a setter; a traversal is needed for that. Restrict the types
      to require `A_Traversal`, and remove the associated (technically
      correct but deceptive) `Mapping` instances.
    
    * Document the strictness behavior of `set'`.
    
    Fixes well-typed#473
    treeowl committed Dec 28, 2022
    Configuration menu
    Copy the full SHA
    40a38d2 View commit details
    Browse the repository at this point in the history