Opened 6 years ago

Closed 3 years ago

#7425 closed feature request (fixed)

Add method to Data.Bits for creating zeroed values.

Reported by: Aninhumer Owned by:
Priority: normal Milestone: 7.8.1
Component: libraries/base Version: 7.6.1
Keywords: report-impact Cc: hvr, ekmett
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

The removal of the Num superclass from Data.Bits now means there is no simple way to create a value in which all bits are set to zero. There are obviously a variety of ways such a value can be constructed with the existing methods, but nonetheless it seems like an odd omission.

The new method could be given an implementation in terms of the existing ones for backwards compatibility.

Change History (3)

comment:1 Changed 5 years ago by igloo

difficulty: Unknown
Resolution: wontfix
Status: newclosed

Thanks for the suggestion. However, library API changes need to be discussed on the libraries list first, and a ticket opened if there is consensus to make the change. Please see http://www.haskell.org/haskellwiki/Library_submissions for more details.

comment:2 Changed 3 years ago by hvr

Cc: hvr ekmett added
Keywords: report-impact added
Milestone: 7.8.1
Resolution: wontfix
Status: closednew

comment:3 Changed 3 years ago by hvr

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.