summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorTobias Dammers <tdammers@gmail.com>2017-10-25 19:09:03 -0400
committerBen Gamari <ben@smart-cactus.org>2017-10-25 19:18:42 -0400
commitdbd81f7e86514498218572b9d978373b1699cc5b (patch)
tree5c4527f5405e67d0de0006fc07dd132162c3b96d /packages
parent4c06ccb71737b77a8165e888ad75417a425549dd (diff)
downloadhaskell-dbd81f7e86514498218572b9d978373b1699cc5b.tar.gz
Factor out readField (#14364)
Improves compiler performance of deriving Read instances, as suggested in the issue. Additionally, we introduce `readSymField`, a companion to `readField` that parses symbol-type fields (where the field name is a symbol, e.g. `(#)`, rather than an alphanumeric identifier. The decision between these two functions is made a compile time, because we already know which one we need based on the field name. Reviewers: austin, hvr, bgamari, RyanGlScott Reviewed By: bgamari Subscribers: RyanGlScott, rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D4108
Diffstat (limited to 'packages')
0 files changed, 0 insertions, 0 deletions