aeson-tiled
aeson-tiled copied to clipboard
`Array (Int, Int) a` and not `Vector a` for 2d data
As now objects and data in Layer have this signatures:
layerData :: Maybe (Vector GlobalId)
layerObjects :: Maybe (Vector Object)
But this is frankly not handy.
Would it would be way better if it were Array (Int, Int) GlobalID or Map (Int, Int) a GlobalID? (Int, Int) being the coordinates, of course.
Is there something not allowing this automatic conversion?
I will add that after a thinking about it a bit, Array is more efficient but with Map you can call union to “merge” data layers, which is extremely handy.