ekmett / adjunctions

Simple adjunctions
http://hackage.haskell.org/package/adjunctions
Other
44 stars 27 forks source link

New function: repStore #54

Open hololeap opened 5 years ago

hololeap commented 5 years ago

This is a new function for Control.Comonad.Representable.Store

-- | The most basic `Store` comonad, built from a `Representable`, using `index` as the underlying function.
repStore :: Representable g => g a -> Rep g -> Store g a
repStore = store . index