packages feed

proton-0.0.1: src/Data/Profunctor/Distributing.hs

module Data.Profunctor.Distributing where

import Data.Profunctor
import Data.Functor.Rep

distribute' :: (Closed p, Representable g) => p a b -> p (g a) (g b)
distribute' = dimap index tabulate . closed