Add To/FromField for (Double, Double), point type#161
Add To/FromField for (Double, Double), point type#161avieth wants to merge 4 commits intolpsmith:masterfrom
Conversation
|
Have you seen #154? In particular, I won't accept a patch with Perhaps we could introduce a |
Eliminates To/FromRow instances of (Double, Double), favouring instead the isomorphic Point type.
|
Your suggestion sounds good. Implemented in 4c37db1 |
|
Ok, now I'd move the ToField/FromField instances into the Geometry module as well, as that's more in keeping with similar such modules. Also, I really don't see any reason why the Point type should be abstract, I'd just go ahead and export the constructor. And I would add a few Haskell instances for Point, at the very least I'd add |
|
You're the boss :) latest commit moves To/FromField into |
Also derive Eq, Ord for Point
Tested and working with PostgreSQL 9.4.1.