Opened 10 years ago

Closed 8 years ago

#3036 closed proposal (wontfix)

Max/Min Monoids

Reported by: whpearson Owned by:
Priority: normal Milestone: Not GHC
Component: libraries/base Version: 6.10.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


A small patch to Data.Monoid to give Max a and Min a monoids for (Ord a, Bounded a) = > a. Very similar to Sum and Product.

Some alternatives here for unbounded Max/Mins

My current preferred one is to not to bother and perhaps put Data.AddBounds in the main branch and people can wrap Integers in that if they want. It seems conceptually purer.

Attachments (1)

minmax.patch (8.0 KB) - added by whpearson 10 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 10 years ago by whpearson

Forgot to export

Changed 10 years ago by whpearson

Attachment: minmax.patch added

comment:2 Changed 10 years ago by igloo

difficulty: Unknown
Milestone: Not GHC

comment:3 Changed 8 years ago by igloo

Resolution: wontfix
Status: newclosed
Type of failure: None/Unknown

Looks like an abandoned proposal

Note: See TracTickets for help on using tickets.