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>
Mon, 9 Jun 2014 18:58:54 +0000 (20:58 +0200)
commit1946922c61df427e59f8a00572fd4dd6501abd98
tree495a8c6ab879364f85804edb3a15584588e92a69
parent25fb4fe8c6d9b04bf180a209ad4b4cb630a46ec5
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