Opened 6 years ago

Closed 5 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 Revisions:

Description

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
http://hpaste.org/fastcgi/hpaste.fcgi/view?id=1528

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 6 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 6 years ago by whpearson

Forgot to export

Changed 6 years ago by whpearson

comment:2 Changed 6 years ago by igloo

  • difficulty set to Unknown
  • Milestone set to Not GHC

comment:3 Changed 5 years ago by igloo

  • Resolution set to wontfix
  • Status changed from new to closed
  • Type of failure set to None/Unknown

Looks like an abandoned proposal

Note: See TracTickets for help on using tickets.