Skip to content

Instantly share code, notes, and snippets.

@dminuoso
Created August 23, 2021 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dminuoso/4195934615b775b3ef7514f97b63dcc7 to your computer and use it in GitHub Desktop.
Save dminuoso/4195934615b775b3ef7514f97b63dcc7 to your computer and use it in GitHub Desktop.
*Odin.Core Optics> view (_Just % _1) (Just ("foo", 1))
<interactive>:5:1: error:
• An_AffineTraversal cannot be used as A_Getter
Perhaps you meant one of these:
‘preview’ (from Optics.AffineFold)
‘over’ (from Optics.Setter)
‘set’ (from Optics.Setter)
‘(^?)’ ‘(%~)’ ‘(.~)’ (from Optics.Operators)
• In the expression: view (_Just % _1) (Just ("foo", 1))
In an equation for ‘it’: it = view (_Just % _1) (Just ("foo", 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment