Make Ptr's parameter phantom
authorJoachim Breitner <mail@joachim-breitner.de>
Mon, 9 Jun 2014 18:55:22 +0000 (20:55 +0200)
committerJoachim Breitner <mail@joachim-breitner.de>
Tue, 10 Jun 2014 07:26:34 +0000 (09:26 +0200)
commit5bdbd510a78f0c17d702fa9399cc0501cfd00fac
tree1bb9231333a1c1e63a4a3ffb10488fcdda7b987c
parentf251afe4e450317c99defab9eeba63a0a998780b
Make Ptr's parameter phantom

and implement castPtr with coerce, which gives
    12% less allocation in reverse-complem
    7.3% less allocation in fasta.
    Binary sizes fell 0.1%.
as reported and discussed in #9163.
libraries/base/Data/Coerce.hs
libraries/base/GHC/Ptr.lhs