ekmett / adjunctions

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

Alternate Minimal Definitions for Adjunctions #48

Closed xcthulhu closed 6 years ago

xcthulhu commented 6 years ago

There are four suitable minimal definitions for an adjunction. This PR updated the documentation accordingly.

ekmett commented 6 years ago
{-# MINIMAL (unit | leftAdjunct), (counit | rightAdjunct) #-}

would be much more concise.

xcthulhu commented 6 years ago

Done.

BTW, we miss you in over here in Boston...

RyanGlScott commented 6 years ago

Thanks! Could you do the same thing to the contravariant version of Adjunction as well?

sjoerdvisscher commented 6 years ago

@xcthulhu you’ve got the last comma and pipe swapped.

xcthulhu commented 6 years ago

Okay, I fixed my typo and made the same change to the contravariant Adjunction

ekmett commented 6 years ago

@xcthulhu I'm still in the Boston area. I moved out to Watertown, so its a little more awkward for me to get down to Boston Haskell though.