haskell-chart
haskell-chart copied to clipboard
De-orphan PlotValue instances
That would require small module juggling, but should be possible.
Motivation: haddock doesn't show orphan instances:
Which is unfortunate (I didn't realise there is Int
instance for example)
Most of this code is older than my knowledge that orphan instances were undesirable :-(
I'd definitely accept a PR for this, or, I can probably look at it in a few weeks time.
That would be a breaking change, as we have to move PlotValue
out of Graphics.Rendering.Chart.Axis.Types
. We could shim Types
, to prevent breaking change, by introducting Types.Internal
, but I'm not sure it's worth the trouble.
I'm not averse to breaking changes for worthwhile improvements. I think that most usage of this library is for short term visualisations and is fairly ad-hoc in any case.