Lysxia / generic-data

Generic data types in Haskell, utilities for GHC.Generics
https://hackage.haskell.org/package/generic-data
MIT License
44 stars 9 forks source link

Optimize generic implementations of Read and Show #37

Open Lysxia opened 4 years ago

Lysxia commented 4 years ago

I don't think this is going to be a bottleneck for anyone, but the task could be an interesting exercise for someone to get some practice with how GHC rewrites Core.

  1. Set up some inspection tests for read and/or show comparing with GHC-derived instances (following some examples for other classes, currently in branch inspect)
  2. Optimize so the tests pass
  3. (optional) Do some benchmarks to get an idea of what we win