funcool / cats

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

Const applicative #125

Open ghost opened 8 years ago

ghost commented 8 years ago

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

yurrriq commented 8 years ago

Bifunctor too!


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