diff options
author | RyanGlScott <ryan.gl.scott@gmail.com> | 2015-10-03 19:21:37 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-10-03 20:03:15 +0200 |
commit | 6cde981a8788b225819be28659caddc35b77972d (patch) | |
tree | f78cd8be5a0549a654e523345bbde48a80493120 /docs/index.html.in | |
parent | a96f1acc59f425062e6192b4cd2a19e1ef987f4a (diff) | |
download | haskell-6cde981a8788b225819be28659caddc35b77972d.tar.gz |
Make GHC generics capable of handling unboxed types
This adds a data family (`URec`) and six data family instances (`UAddr`,
`UChar`, `UDouble`, `UFloat`, `UInt`, and `UWord`) which a `deriving
Generic(1)` clause will generate if it sees `Addr#`, `Char#`, `Double#`,
`Float#`, `Int#`, or `Word#`, respectively. The programmer can then
provide instances for these data family instances to provide custom
implementations for unboxed types, similar to how derived `Eq`, `Ord`,
and `Show` instances currently special-case unboxed types.
Fixes #10868.
Test Plan: ./validate
Reviewers: goldfire, dreixel, bgamari, austin, hvr, kosmikus
Reviewed By: dreixel, kosmikus
Subscribers: simonpj, thomie
Differential Revision: https://phabricator.haskell.org/D1239
GHC Trac Issues: #10868
Diffstat (limited to 'docs/index.html.in')
0 files changed, 0 insertions, 0 deletions