Skip to content

Instantly share code, notes, and snippets.

@joshcough
Created August 4, 2018 15:47
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 joshcough/9b9f755ecda8d0f3a722dd883dd476ac to your computer and use it in GitHub Desktop.
Save joshcough/9b9f755ecda8d0f3a722dd883dd476ac to your computer and use it in GitHub Desktop.
path :: [Text] -> Traversal' Value Value
path = alaf Endo foldMap key
• Couldn't match type ‘Maybe Value’ with ‘Value’
Expected type: [Text] -> (Value -> f Value) -> Value -> f Value
Actual type: [Text]
-> Unwrapped (Endo (Maybe Value -> f (Maybe Value)))
• In the expression: alaf Endo foldMap key
In an equation for ‘path’: path = alaf Endo foldMap key
|
139 | path = alaf Endo foldMap key
| ^^^^^^^^^^^^^^^^^^^^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment