Ticket #3352 (closed feature request: fixed)
Data.Word should define instances of Random for each type
| Reported by: | kaol | Owned by: | rrnewton |
|---|---|---|---|
| Priority: | normal | Milestone: | _|_ |
| Component: | libraries/base | Version: | 6.10.3 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
I'm forwarding Debian bug http://bugs.debian.org/533022 for your consideration.
Data.Word defines signed and unsigned integer types for various bit sizes. It would help if Data.Word made each type an instance of Random. Per http://www.haskell.org/haskellwiki/Orphan_instance , such an instance should appear either in System.Random or Data.Word, and it makes more sense to do the latter.
Change History
Note: See
TracTickets for help on using
tickets.
