Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created February 15, 2017 21:20
Show Gist options
  • Save deque-blog/c4ef3f59043c836a12892e25d9c38a27 to your computer and use it in GitHub Desktop.
Save deque-blog/c4ef3f59043c836a12892e25d9c38a27 to your computer and use it in GitHub Desktop.
para :: (ExprR (a, Expr) -> a) -> Expr -> a
para alg = alg . fmap (para alg &&& id) . unFix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment