Skip to content

Instantly share code, notes, and snippets.

View haroldcarr's full-sized avatar

Harold Carr haroldcarr

View GitHub Profile
@haroldcarr
haroldcarr / cataM'
Created September 9, 2017 14:59
monadic version
cataM' :: (Applicative m, Monad m, Traversable t)
=> (t a -> m a)
-> ((Fix t -> m a) -> (Fix t -> m a))
-> (Fix t -> m a)
cataM' f g = g ((f =<<) . traverse (cataM' f g) . unFix)

Keybase proof

I hereby claim:

  • I am haroldcarr on github.
  • I am haroldcarr (https://keybase.io/haroldcarr) on keybase.
  • I have a public key whose fingerprint is 661A 5D83 837E 9DC5 68F8 F0E3 3C01 0A22 D37D 3613

To claim this, I am signing this object:

Verifying that +haroldcarr is my openname (Bitcoin username). https://onename.io/haroldcarr