grid 7.8.7 → 7.8.8
raw patch · 2 files changed
+9/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Math.Geometry.GridMap.Lazy: instance Math.Geometry.GridInternal.BoundedGrid g => Math.Geometry.GridInternal.BoundedGrid (Math.Geometry.GridMap.Lazy.LGridMap g v)
+ Math.Geometry.GridMap.Lazy: instance Math.Geometry.GridInternal.WrappedGrid g => Math.Geometry.GridInternal.WrappedGrid (Math.Geometry.GridMap.Lazy.LGridMap g v)
Files
- grid.cabal +1/−1
- src/Math/Geometry/GridMap/Lazy.hs +8/−1
grid.cabal view
@@ -1,5 +1,5 @@ name: grid-version: 7.8.7+version: 7.8.8 synopsis: Tools for working with regular grids (graphs, lattices). description: Provides tools for working with regular arrangements of tiles, such as might be used in a board game or some
src/Math/Geometry/GridMap/Lazy.hs view
@@ -32,7 +32,7 @@ --import qualified Data.Map.Strict as Strict (Map) import Data.Maybe (fromMaybe) import GHC.Generics (Generic)-import qualified Math.Geometry.Grid as G+import qualified Math.Geometry.GridInternal as G import Math.Geometry.GridMap -- | A map from tile positions in a grid to values.@@ -86,6 +86,13 @@ type Size (LGridMap g v) = G.Size g size (LGridMap g _) = G.size g maxPossibleDistance (LGridMap g _) = G.maxPossibleDistance g++instance G.BoundedGrid g => G.BoundedGrid (LGridMap g v) where+ tileSideCount (LGridMap g _) = G.tileSideCount g++instance G.WrappedGrid g => G.WrappedGrid (LGridMap g v) where+ normalise (LGridMap g _) = G.normalise g+ denormalise (LGridMap g _) = G.denormalise g instance (G.Grid g) => GridMap (LGridMap g) v where type BaseGrid (LGridMap g) v = g