packages feed

grid 7.8.1 → 7.8.2

raw patch · 2 files changed

+13/−5 lines, 2 filesdep ~basePVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: base

API changes (from Hackage documentation)

- Math.Geometry.Grid.Hexagonal: [UnboundedHexGrid] :: UnboundedHexGrid
- Math.Geometry.Grid.Hexagonal2: [UnboundedHexGrid] :: UnboundedHexGrid
- Math.Geometry.Grid.HexagonalInternal: [East] :: HexDirection
- Math.Geometry.Grid.HexagonalInternal: [HexHexGrid] :: Int -> [(Int, Int)] -> HexHexGrid
- Math.Geometry.Grid.HexagonalInternal: [Northeast] :: HexDirection
- Math.Geometry.Grid.HexagonalInternal: [Northwest] :: HexDirection
- Math.Geometry.Grid.HexagonalInternal: [ParaHexGrid] :: (Int, Int) -> [(Int, Int)] -> ParaHexGrid
- Math.Geometry.Grid.HexagonalInternal: [Southeast] :: HexDirection
- Math.Geometry.Grid.HexagonalInternal: [Southwest] :: HexDirection
- Math.Geometry.Grid.HexagonalInternal: [UnboundedHexGrid] :: UnboundedHexGrid
- Math.Geometry.Grid.HexagonalInternal: [West] :: HexDirection
- Math.Geometry.Grid.HexagonalInternal2: [HexHexGrid] :: Int -> [(Int, Int)] -> HexHexGrid
- Math.Geometry.Grid.HexagonalInternal2: [North] :: HexDirection
- Math.Geometry.Grid.HexagonalInternal2: [Northeast] :: HexDirection
- Math.Geometry.Grid.HexagonalInternal2: [Northwest] :: HexDirection
- Math.Geometry.Grid.HexagonalInternal2: [RectHexGrid] :: (Int, Int) -> [(Int, Int)] -> RectHexGrid
- Math.Geometry.Grid.HexagonalInternal2: [South] :: HexDirection
- Math.Geometry.Grid.HexagonalInternal2: [Southeast] :: HexDirection
- Math.Geometry.Grid.HexagonalInternal2: [Southwest] :: HexDirection
- Math.Geometry.Grid.HexagonalInternal2: [UnboundedHexGrid] :: UnboundedHexGrid
- Math.Geometry.Grid.Octagonal: [UnboundedOctGrid] :: UnboundedOctGrid
- Math.Geometry.Grid.OctagonalInternal: [East] :: OctDirection
- Math.Geometry.Grid.OctagonalInternal: [North] :: OctDirection
- Math.Geometry.Grid.OctagonalInternal: [Northeast] :: OctDirection
- Math.Geometry.Grid.OctagonalInternal: [Northwest] :: OctDirection
- Math.Geometry.Grid.OctagonalInternal: [RectOctGrid] :: (Int, Int) -> [(Int, Int)] -> RectOctGrid
- Math.Geometry.Grid.OctagonalInternal: [South] :: OctDirection
- Math.Geometry.Grid.OctagonalInternal: [Southeast] :: OctDirection
- Math.Geometry.Grid.OctagonalInternal: [Southwest] :: OctDirection
- Math.Geometry.Grid.OctagonalInternal: [TorOctGrid] :: (Int, Int) -> [(Int, Int)] -> TorOctGrid
- Math.Geometry.Grid.OctagonalInternal: [UnboundedOctGrid] :: UnboundedOctGrid
- Math.Geometry.Grid.OctagonalInternal: [West] :: OctDirection
- Math.Geometry.Grid.Square: [UnboundedSquareGrid] :: UnboundedSquareGrid
- Math.Geometry.Grid.SquareInternal: [East] :: SquareDirection
- Math.Geometry.Grid.SquareInternal: [North] :: SquareDirection
- Math.Geometry.Grid.SquareInternal: [RectSquareGrid] :: (Int, Int) -> [(Int, Int)] -> RectSquareGrid
- Math.Geometry.Grid.SquareInternal: [South] :: SquareDirection
- Math.Geometry.Grid.SquareInternal: [TorSquareGrid] :: (Int, Int) -> [(Int, Int)] -> TorSquareGrid
- Math.Geometry.Grid.SquareInternal: [UnboundedSquareGrid] :: UnboundedSquareGrid
- Math.Geometry.Grid.SquareInternal: [West] :: SquareDirection
- Math.Geometry.Grid.Triangular: [UnboundedTriGrid] :: UnboundedTriGrid
- Math.Geometry.Grid.TriangularInternal: [North] :: TriDirection
- Math.Geometry.Grid.TriangularInternal: [Northeast] :: TriDirection
- Math.Geometry.Grid.TriangularInternal: [Northwest] :: TriDirection
- Math.Geometry.Grid.TriangularInternal: [ParaTriGrid] :: (Int, Int) -> [(Int, Int)] -> ParaTriGrid
- Math.Geometry.Grid.TriangularInternal: [RectTriGrid] :: (Int, Int) -> [(Int, Int)] -> RectTriGrid
- Math.Geometry.Grid.TriangularInternal: [South] :: TriDirection
- Math.Geometry.Grid.TriangularInternal: [Southeast] :: TriDirection
- Math.Geometry.Grid.TriangularInternal: [Southwest] :: TriDirection
- Math.Geometry.Grid.TriangularInternal: [TorTriGrid] :: (Int, Int) -> [(Int, Int)] -> TorTriGrid
- Math.Geometry.Grid.TriangularInternal: [TriTriGrid] :: Int -> [(Int, Int)] -> TriTriGrid
- Math.Geometry.Grid.TriangularInternal: [UnboundedTriGrid] :: UnboundedTriGrid
- Math.Geometry.Grid.TriangularInternal: [XCylTriGrid] :: (Int, Int) -> [(Int, Int)] -> XCylTriGrid
- Math.Geometry.Grid.TriangularInternal: [YCylTriGrid] :: (Int, Int) -> [(Int, Int)] -> YCylTriGrid
+ Math.Geometry.Grid.Hexagonal: UnboundedHexGrid :: UnboundedHexGrid
+ Math.Geometry.Grid.Hexagonal2: UnboundedHexGrid :: UnboundedHexGrid
+ Math.Geometry.Grid.HexagonalInternal: East :: HexDirection
+ Math.Geometry.Grid.HexagonalInternal: HexHexGrid :: Int -> [(Int, Int)] -> HexHexGrid
+ Math.Geometry.Grid.HexagonalInternal: Northeast :: HexDirection
+ Math.Geometry.Grid.HexagonalInternal: Northwest :: HexDirection
+ Math.Geometry.Grid.HexagonalInternal: ParaHexGrid :: (Int, Int) -> [(Int, Int)] -> ParaHexGrid
+ Math.Geometry.Grid.HexagonalInternal: Southeast :: HexDirection
+ Math.Geometry.Grid.HexagonalInternal: Southwest :: HexDirection
+ Math.Geometry.Grid.HexagonalInternal: UnboundedHexGrid :: UnboundedHexGrid
+ Math.Geometry.Grid.HexagonalInternal: West :: HexDirection
+ Math.Geometry.Grid.HexagonalInternal2: HexHexGrid :: Int -> [(Int, Int)] -> HexHexGrid
+ Math.Geometry.Grid.HexagonalInternal2: North :: HexDirection
+ Math.Geometry.Grid.HexagonalInternal2: Northeast :: HexDirection
+ Math.Geometry.Grid.HexagonalInternal2: Northwest :: HexDirection
+ Math.Geometry.Grid.HexagonalInternal2: RectHexGrid :: (Int, Int) -> [(Int, Int)] -> RectHexGrid
+ Math.Geometry.Grid.HexagonalInternal2: South :: HexDirection
+ Math.Geometry.Grid.HexagonalInternal2: Southeast :: HexDirection
+ Math.Geometry.Grid.HexagonalInternal2: Southwest :: HexDirection
+ Math.Geometry.Grid.HexagonalInternal2: UnboundedHexGrid :: UnboundedHexGrid
+ Math.Geometry.Grid.Octagonal: UnboundedOctGrid :: UnboundedOctGrid
+ Math.Geometry.Grid.OctagonalInternal: East :: OctDirection
+ Math.Geometry.Grid.OctagonalInternal: North :: OctDirection
+ Math.Geometry.Grid.OctagonalInternal: Northeast :: OctDirection
+ Math.Geometry.Grid.OctagonalInternal: Northwest :: OctDirection
+ Math.Geometry.Grid.OctagonalInternal: RectOctGrid :: (Int, Int) -> [(Int, Int)] -> RectOctGrid
+ Math.Geometry.Grid.OctagonalInternal: South :: OctDirection
+ Math.Geometry.Grid.OctagonalInternal: Southeast :: OctDirection
+ Math.Geometry.Grid.OctagonalInternal: Southwest :: OctDirection
+ Math.Geometry.Grid.OctagonalInternal: TorOctGrid :: (Int, Int) -> [(Int, Int)] -> TorOctGrid
+ Math.Geometry.Grid.OctagonalInternal: UnboundedOctGrid :: UnboundedOctGrid
+ Math.Geometry.Grid.OctagonalInternal: West :: OctDirection
+ Math.Geometry.Grid.Square: UnboundedSquareGrid :: UnboundedSquareGrid
+ Math.Geometry.Grid.SquareInternal: East :: SquareDirection
+ Math.Geometry.Grid.SquareInternal: North :: SquareDirection
+ Math.Geometry.Grid.SquareInternal: RectSquareGrid :: (Int, Int) -> [(Int, Int)] -> RectSquareGrid
+ Math.Geometry.Grid.SquareInternal: South :: SquareDirection
+ Math.Geometry.Grid.SquareInternal: TorSquareGrid :: (Int, Int) -> [(Int, Int)] -> TorSquareGrid
+ Math.Geometry.Grid.SquareInternal: UnboundedSquareGrid :: UnboundedSquareGrid
+ Math.Geometry.Grid.SquareInternal: West :: SquareDirection
+ Math.Geometry.Grid.Triangular: UnboundedTriGrid :: UnboundedTriGrid
+ Math.Geometry.Grid.TriangularInternal: North :: TriDirection
+ Math.Geometry.Grid.TriangularInternal: Northeast :: TriDirection
+ Math.Geometry.Grid.TriangularInternal: Northwest :: TriDirection
+ Math.Geometry.Grid.TriangularInternal: ParaTriGrid :: (Int, Int) -> [(Int, Int)] -> ParaTriGrid
+ Math.Geometry.Grid.TriangularInternal: RectTriGrid :: (Int, Int) -> [(Int, Int)] -> RectTriGrid
+ Math.Geometry.Grid.TriangularInternal: South :: TriDirection
+ Math.Geometry.Grid.TriangularInternal: Southeast :: TriDirection
+ Math.Geometry.Grid.TriangularInternal: Southwest :: TriDirection
+ Math.Geometry.Grid.TriangularInternal: TorTriGrid :: (Int, Int) -> [(Int, Int)] -> TorTriGrid
+ Math.Geometry.Grid.TriangularInternal: TriTriGrid :: Int -> [(Int, Int)] -> TriTriGrid
+ Math.Geometry.Grid.TriangularInternal: UnboundedTriGrid :: UnboundedTriGrid
+ Math.Geometry.Grid.TriangularInternal: XCylTriGrid :: (Int, Int) -> [(Int, Int)] -> XCylTriGrid
+ Math.Geometry.Grid.TriangularInternal: YCylTriGrid :: (Int, Int) -> [(Int, Int)] -> YCylTriGrid
- Math.Geometry.GridInternal: class (Grid g) => WrappedGrid g
+ Math.Geometry.GridInternal: class Grid g => WrappedGrid g

Files

grid.cabal view
@@ -1,5 +1,5 @@ Name:              grid-Version:           7.8.1+Version:           7.8.2 Stability:         experimental Synopsis:          Tools for working with regular grids (graphs, lattices). Description:       Provides tools for working with regular arrangements@@ -27,12 +27,12 @@ source-repository this   type:     git   location: https://github.com/mhwombat/grid.git-  tag:      7.8.1+  tag:      7.8.2   library   hs-source-dirs:  src-  build-depends:   base ==4.* && >= 4.8,+  build-depends:   base ==4.*,                    cereal ==0.4.*,                    containers ==0.5.*   ghc-options:     -Wall@@ -53,7 +53,7 @@  test-suite grid-tests   type:            exitcode-stdio-1.0-  build-depends:   base ==4.* && >= 4.8,+  build-depends:   base ==4.*,                    containers ==0.5.*,                    test-framework-quickcheck2 ==0.3.*,                    QuickCheck ==2.7.*,
src/Math/Geometry/GridMap.hs view
@@ -12,7 +12,10 @@ -- @'Data.Map'@, in order to combine the functionality of grids and maps -- into a single type. -------------------------------------------------------------------------{-# LANGUAGE TypeFamilies, FlexibleContexts, MultiParamTypeClasses #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE MultiParamTypeClasses #-}+{-# LANGUAGE CPP #-}  module Math.Geometry.GridMap   (@@ -32,6 +35,11 @@ import Prelude hiding (lookup, map, foldr, foldl, foldr1, foldl1, null) import qualified Data.Map as M import qualified Math.Geometry.Grid as G++#if MIN_VERSION_base(4,8,0)+#else+import Data.Foldable (Foldable)+#endif  -- | A regular arrangement of tiles, having a value associated with --   each tile.