funcool / cats

Category Theory and Algebraic abstractions for Clojure and ClojureScript.
http://funcool.github.io/cats/latest/
BSD 2-Clause "Simplified" License
943 stars 66 forks source link

Const applicative #125

Open ghost opened 9 years ago

ghost commented 9 years ago

http://hackage.haskell.org/package/base-4.8.1.0/docs/Control-Applicative.html#t:Const

yurrriq commented 9 years ago

Bifunctor too!


instance Bifunctor Const where
    bimap f _ (Const a) = Const (f a)