Add specialization rules for realToFrac on Complex
authorTakano Akio <tak@anoak.io>
Tue, 3 Jan 2017 05:20:24 +0000 (00:20 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 3 Jan 2017 05:20:25 +0000 (00:20 -0500)
commit5800b02a1910a468485b272a2063377e8b06ee1d
treeedc3c782d692be48e6f16e339da31cdd2bfad22f
parent8d63ca981f689463655766c252160d3fec160264
Add specialization rules for realToFrac on Complex

This patch implements RULES that specialize realToFrac at these 2 types:

`(Real a) => a -> Complex Double`
`(Real a) => a -> Complex Float`

Test Plan: ./validate

Reviewers: austin, hvr, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2901

GHC Trac Issues: #13040
libraries/base/Data/Complex.hs