packages feed

grid 7.8.9 → 7.8.10

raw patch · 27 files changed

+153/−124 lines, 27 filesdep −cerealdep ~QuickCheckdep ~basedep ~containersPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependencies removed: cereal

Dependency ranges changed: QuickCheck, base, containers, test-framework, test-framework-quickcheck2

API changes (from Hackage documentation)

- Math.Geometry.Grid: class Grid g => BoundedGrid g where boundary = defaultBoundary isBoundary = defaultIsBoundary centre = defaultCentre isCentre = defaultIsCentre defaultBoundary g = map fst . filter f $ xds where xds = map (\ b -> (b, numNeighbours g b)) $ indices g f (_, n) = n < tileSideCount g defaultIsBoundary g a = a `elem` boundary g defaultCentre g = map fst . head . groupBy ((==) `on` snd) . sortBy (comparing snd) $ xds where xds = map (\ b -> (b, f b)) $ indices g bs = boundary g f x = sum . map (distance g x) $ bs defaultIsCentre g a = a `elem` centre g
+ Math.Geometry.Grid: class Grid g => BoundedGrid g
- Math.Geometry.Grid: class Grid g => FiniteGrid g where type Size g where {
+ Math.Geometry.Grid: class Grid g => FiniteGrid g where {
- Math.Geometry.Grid: class Grid g where type Index g type Direction g minDistance = defaultMinDistance neighbours = defaultNeighbours neighboursOfSet = defaultNeighboursOfSet neighbour = defaultNeighbour numNeighbours g = length . neighbours g contains g a = a `elem` indices g tileCount = length . indices null g = tileCount g == 0 nonNull = not . null edges = defaultEdges viewpoint g p = map f (indices g) where f a = (a, distance g p a) isAdjacent = defaultIsAdjacent adjacentTilesToward = defaultAdjacentTilesToward minimalPaths = defaultMinimalPaths defaultMinDistance g xs a = minimum . map (distance g a) $ xs defaultNeighbours g a = filter (\ b -> distance g a b == 1) $ indices g defaultNeighboursOfSet g as = ns \\ as where ns = nub . concatMap (neighbours g) $ as defaultNeighbour g a d = maybeHead . filter (\ b -> [d] == directionTo g a b) . neighbours g $ a where maybeHead (x : _) = Just x maybeHead _ = Nothing defaultTileCount = length . indices defaultEdges g = nubBy sameEdge $ concatMap (`adjacentEdges` g) $ indices g defaultIsAdjacent g a b = distance g a b == 1 defaultAdjacentTilesToward g a b = filter f $ neighbours g a where f c = distance g c b == distance g a b - 1 defaultMinimalPaths g a b | a == b = [[a]] | distance g a b == 1 = [[a, b]] | otherwise = map (a :) xs where xs = concatMap (\ c -> minimalPaths g c b) ys ys = adjacentTilesToward g a b where {
+ Math.Geometry.Grid: class Grid g
- Math.Geometry.GridInternal: class Grid g => BoundedGrid g where boundary = defaultBoundary isBoundary = defaultIsBoundary centre = defaultCentre isCentre = defaultIsCentre defaultBoundary g = map fst . filter f $ xds where xds = map (\ b -> (b, numNeighbours g b)) $ indices g f (_, n) = n < tileSideCount g defaultIsBoundary g a = a `elem` boundary g defaultCentre g = map fst . head . groupBy ((==) `on` snd) . sortBy (comparing snd) $ xds where xds = map (\ b -> (b, f b)) $ indices g bs = boundary g f x = sum . map (distance g x) $ bs defaultIsCentre g a = a `elem` centre g
+ Math.Geometry.GridInternal: class Grid g => BoundedGrid g
- Math.Geometry.GridInternal: class Grid g => FiniteGrid g where type Size g where {
+ Math.Geometry.GridInternal: class Grid g => FiniteGrid g where {
- Math.Geometry.GridInternal: class Grid g where type Index g type Direction g minDistance = defaultMinDistance neighbours = defaultNeighbours neighboursOfSet = defaultNeighboursOfSet neighbour = defaultNeighbour numNeighbours g = length . neighbours g contains g a = a `elem` indices g tileCount = length . indices null g = tileCount g == 0 nonNull = not . null edges = defaultEdges viewpoint g p = map f (indices g) where f a = (a, distance g p a) isAdjacent = defaultIsAdjacent adjacentTilesToward = defaultAdjacentTilesToward minimalPaths = defaultMinimalPaths defaultMinDistance g xs a = minimum . map (distance g a) $ xs defaultNeighbours g a = filter (\ b -> distance g a b == 1) $ indices g defaultNeighboursOfSet g as = ns \\ as where ns = nub . concatMap (neighbours g) $ as defaultNeighbour g a d = maybeHead . filter (\ b -> [d] == directionTo g a b) . neighbours g $ a where maybeHead (x : _) = Just x maybeHead _ = Nothing defaultTileCount = length . indices defaultEdges g = nubBy sameEdge $ concatMap (`adjacentEdges` g) $ indices g defaultIsAdjacent g a b = distance g a b == 1 defaultAdjacentTilesToward g a b = filter f $ neighbours g a where f c = distance g c b == distance g a b - 1 defaultMinimalPaths g a b | a == b = [[a]] | distance g a b == 1 = [[a, b]] | otherwise = map (a :) xs where xs = concatMap (\ c -> minimalPaths g c b) ys ys = adjacentTilesToward g a b where {
+ Math.Geometry.GridInternal: class Grid g where {
- Math.Geometry.GridMap: class (Grid (BaseGrid gm v), Foldable gm) => GridMap (gm :: * -> *) v where type BaseGrid gm v (!) gm k = toMap gm ! k toList = toList . toMap lookup k = lookup k . toMap insert = insertWith const insertWith f = insertWithKey (\ _ x' y' -> f x' y') insertLookupWithKey f k v gm = (lookup k gm, insertWithKey f k v gm) adjust f = adjustWithKey (\ _ v -> f v) findWithDefault v k = findWithDefault v k . toMap keys = keys . toMap elems = elems . toMap map f = mapWithKey (\ _ v -> f v) filter p = filterWithKey (\ _ x -> p x) where {
+ Math.Geometry.GridMap: class (Grid (BaseGrid gm v), Foldable gm) => GridMap (gm :: * -> *) v where {
- Math.Geometry.GridMap: foldl :: (a -> b -> a) -> a -> Map k b -> a
+ Math.Geometry.GridMap: foldl :: () => a -> b -> a -> a -> Map k b -> a
- Math.Geometry.GridMap: foldl' :: (a -> b -> a) -> a -> Map k b -> a
+ Math.Geometry.GridMap: foldl' :: () => a -> b -> a -> a -> Map k b -> a
- Math.Geometry.GridMap: foldr :: (a -> b -> b) -> b -> Map k a -> b
+ Math.Geometry.GridMap: foldr :: () => a -> b -> b -> b -> Map k a -> b
- Math.Geometry.GridMap: foldr' :: (a -> b -> b) -> b -> Map k a -> b
+ Math.Geometry.GridMap: foldr' :: () => a -> b -> b -> b -> Map k a -> b
- Math.Geometry.GridMap.Lazy: lazyGridMapIndexed :: (Ord (Index g), Grid g) => g -> [(Index g, v)] -> LGridMap g v
+ Math.Geometry.GridMap.Lazy: lazyGridMapIndexed :: (Ord (Index g), Grid g) => g -> [((Index g), v)] -> LGridMap g v

Files

+ ChangeLog.md view
@@ -0,0 +1,5 @@+# Changelog for grid++7.8.10 Revamped to work with Stack v1.7.1.++## Unreleased changes
LICENSE view
@@ -1,4 +1,4 @@-Copyright Amy de Buitléir (c) 2016+Copyright Amy de Buitléir (c) 2016-2018  All rights reserved. 
+ README.md view
@@ -0,0 +1,21 @@+[![Hackage](https://img.shields.io/hackage/v/grid.svg)](http://hackage.haskell.org/package/grid)+[![Hackage-Deps](https://img.shields.io/hackage-deps/v/grid.svg)](http://hackage.haskell.org/package/grid)++# Grid++**Grid** is a Haskell library for working with regular grids/graphs/lattices.++Please read the introductory userguide with pictures [here][wiki].++More detailed Haddock documentation with sample code can be found at [Hackage][hackage].++## Related packages++- [htiled][htiled]: Import maps from the `.tmx` map format generated by [Tiled][Tiled].+- [IcoGrid][IcoGrid]: Defines functions for dealing with a type of hexagon grid wrapped around a sphere.++[wiki]:https://github.com/mhwombat/grid/wiki+[hackage]:http://hackage.haskell.org/packages/archive/grid/latest/doc/html/Math-Geometry-Grid.html+[htiled]:http://hackage.haskell.org/package/htiled+[Tiled]:http://www.mapeditor.org+[IcoGrid]:http://hackage.haskell.org/package/IcoGrid
grid.cabal view
@@ -1,71 +1,76 @@-name: grid-version: 7.8.9-cabal-version: >=1.10-build-type: Simple-license: BSD3-license-file: LICENSE-copyright: (c) Amy de Buitléir 2010-2016-maintainer: amy@nualeargais.ie-homepage: https://github.com/mhwombat/grid#readme-bug-reports: https://github.com/mhwombat/grid/issues-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-    other type of grid map. Currently supports triangular,-    square, and hexagonal tiles, with various 2D and-    toroidal layouts.-    The userguide is available at-    <https://github.com/mhwombat/grid/wiki>.-category: Math-author: Amy de Buitléir+-- This file has been generated from package.yaml by hpack version 0.28.2.+--+-- see: https://github.com/sol/hpack+--+-- hash: add150642d3d975fd2ae7f93f27f6bb6a586d77198f61f9e7d145568cbab1255 +name:           grid+version:        7.8.10+synopsis:       Tools for working with regular grids (graphs, lattices).+description:    Please see the README on GitHub at <https://github.com/mhwombat/grid#readme>+category:       Math+homepage:       https://github.com/mhwombat/grid#readme+bug-reports:    https://github.com/mhwombat/grid/issues+author:         Amy de Buitléir+maintainer:     amy@nualeargais.ie+copyright:      2010-2018 Amy de Buitléir+license:        BSD3+license-file:   LICENSE+build-type:     Simple+cabal-version:  >= 1.10+extra-source-files:+    ChangeLog.md+    README.md+ source-repository head-    type: git-    location: https://github.com/mhwombat/grid+  type: git+  location: https://github.com/mhwombat/grid  library-    exposed-modules:-        Math.Geometry.Grid-        Math.Geometry.Grid.Triangular-        Math.Geometry.Grid.Square-        Math.Geometry.Grid.Hexagonal-        Math.Geometry.Grid.Hexagonal2-        Math.Geometry.Grid.Octagonal-        Math.Geometry.GridInternal-        Math.Geometry.Grid.TriangularInternal-        Math.Geometry.Grid.SquareInternal-        Math.Geometry.Grid.HexagonalInternal-        Math.Geometry.Grid.HexagonalInternal2-        Math.Geometry.Grid.OctagonalInternal-        Math.Geometry.GridMap-        Math.Geometry.GridMap.Lazy-    build-depends:-        base >=4.7 && <5,-        cereal >=0.4 && <0.6,-        containers ==0.5.*-    default-language: Haskell2010-    hs-source-dirs: src-    ghc-options: -Wall+  exposed-modules:+      Math.Geometry.Grid+      Math.Geometry.Grid.Hexagonal+      Math.Geometry.Grid.Hexagonal2+      Math.Geometry.Grid.HexagonalInternal+      Math.Geometry.Grid.HexagonalInternal2+      Math.Geometry.Grid.Octagonal+      Math.Geometry.Grid.OctagonalInternal+      Math.Geometry.Grid.Square+      Math.Geometry.Grid.SquareInternal+      Math.Geometry.Grid.Triangular+      Math.Geometry.Grid.TriangularInternal+      Math.Geometry.GridInternal+      Math.Geometry.GridMap+      Math.Geometry.GridMap.Lazy+  other-modules:+      Paths_grid+  hs-source-dirs:+      src+  ghc-options: -Wall+  build-depends:+      base >=4.7 && <5+    , containers+  default-language: Haskell2010 -test-suite grid-test-    type: exitcode-stdio-1.0-    main-is: TestMain.hs-    build-depends:-        base >=4.10.0.0 && <4.11,-        grid,-        containers >=0.5.10.2 && <0.6,-        test-framework ==0.8.*,-        test-framework-quickcheck2 ==0.3.*,-        QuickCheck >=2.8 && <2.10-    default-language: Haskell2010-    hs-source-dirs: test-    other-modules:-        Math.Geometry.GridQC-        Math.Geometry.Grid.Hexagonal2QC-        Math.Geometry.Grid.HexagonalQC-        Math.Geometry.Grid.OctagonalQC-        Math.Geometry.Grid.SquareQC-        Math.Geometry.Grid.TriangularQC-        Math.Geometry.GridMap.LazyQC-    ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall+test-suite som-test+  type: exitcode-stdio-1.0+  main-is: Spec.hs+  other-modules:+      Math.Geometry.Grid.Hexagonal2QC+      Math.Geometry.Grid.HexagonalQC+      Math.Geometry.Grid.OctagonalQC+      Math.Geometry.Grid.SquareQC+      Math.Geometry.Grid.TriangularQC+      Math.Geometry.GridMap.LazyQC+      Math.Geometry.GridQC+      Paths_grid+  hs-source-dirs:+      test+  ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall+  build-depends:+      QuickCheck+    , base >=4.7 && <5+    , grid+    , test-framework+    , test-framework-quickcheck2+  default-language: Haskell2010
src/Math/Geometry/Grid.hs view
@@ -1,7 +1,7 @@ ----------------------------------------------------------------------------- -- | -- Module      :  Math.Geometry.Grid--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
src/Math/Geometry/Grid/Hexagonal.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.HexGrid--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
src/Math/Geometry/Grid/Hexagonal2.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.HexGrid--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
src/Math/Geometry/Grid/HexagonalInternal.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.HexGridInternal--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
src/Math/Geometry/Grid/HexagonalInternal2.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.HexGridInternal--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
src/Math/Geometry/Grid/Octagonal.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.OctGrid--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
src/Math/Geometry/Grid/OctagonalInternal.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.OctGridInternal--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
src/Math/Geometry/Grid/Square.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.SquareGrid--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
src/Math/Geometry/Grid/SquareInternal.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.SquareGridInternal--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
src/Math/Geometry/Grid/Triangular.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.TriGrid--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
src/Math/Geometry/Grid/TriangularInternal.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.TriGridInternal--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
src/Math/Geometry/GridInternal.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.GridInternal--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
src/Math/Geometry/GridMap.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.GridMap--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
src/Math/Geometry/GridMap/Lazy.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.GridMap.Lazy--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
test/Math/Geometry/Grid/Hexagonal2QC.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.Grid.Hexagonal2QC--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
test/Math/Geometry/Grid/HexagonalQC.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.Grid.RectangularQC--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
test/Math/Geometry/Grid/OctagonalQC.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.Grid.OctagonalQC--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
test/Math/Geometry/Grid/SquareQC.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.Grid.SquareQC--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
test/Math/Geometry/Grid/TriangularQC.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.Grid.TriangularQC--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
test/Math/Geometry/GridMap/LazyQC.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.GridMap.LazyQC--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
test/Math/Geometry/GridQC.hs view
@@ -1,7 +1,7 @@ ------------------------------------------------------------------------ -- | -- Module      :  Math.Geometry.Grid.GridQC--- Copyright   :  (c) Amy de Buitléir 2012-2016+-- Copyright   :  (c) Amy de Buitléir 2012-2017 -- License     :  BSD-style -- Maintainer  :  amy@nualeargais.ie -- Stability   :  experimental
+ test/Spec.hs view
@@ -0,0 +1,34 @@+------------------------------------------------------------------------+-- |+-- Module      :  Main+-- Copyright   :  (c) Amy de Buitléir 2012-2017+-- License     :  BSD-style+-- Maintainer  :  amy@nualeargais.ie+-- Stability   :  experimental+-- Portability :  portable+--+-- QuickCheck tests.+--+------------------------------------------------------------------------+import Math.Geometry.Grid.TriangularQC ( test )+import Math.Geometry.Grid.SquareQC ( test )+import Math.Geometry.Grid.HexagonalQC ( test )+import Math.Geometry.Grid.Hexagonal2QC ( test )+import Math.Geometry.Grid.OctagonalQC ( test )+import Math.Geometry.GridMap.LazyQC (test)++import Test.Framework ( defaultMain, Test )++tests :: [Test]+tests = +  [ +    Math.Geometry.Grid.TriangularQC.test,+    Math.Geometry.Grid.SquareQC.test,+    Math.Geometry.Grid.HexagonalQC.test,+    Math.Geometry.Grid.Hexagonal2QC.test,+    Math.Geometry.Grid.OctagonalQC.test,+    Math.Geometry.GridMap.LazyQC.test+  ]++main :: IO ()+main = defaultMain tests
− test/TestMain.hs
@@ -1,36 +0,0 @@---------------------------------------------------------------------------- |--- Module      :  Math.Geometry.Grid.Main--- Copyright   :  (c) Amy de Buitléir 2012-2016--- License     :  BSD-style--- Maintainer  :  amy@nualeargais.ie--- Stability   :  experimental--- Portability :  portable------ QuickCheck tests.-----------------------------------------------------------------------------module Main where--import Math.Geometry.Grid.TriangularQC ( test )-import Math.Geometry.Grid.SquareQC ( test )-import Math.Geometry.Grid.HexagonalQC ( test )-import Math.Geometry.Grid.Hexagonal2QC ( test )-import Math.Geometry.Grid.OctagonalQC ( test )-import Math.Geometry.GridMap.LazyQC (test)--import Test.Framework ( defaultMain, Test )--tests :: [Test]-tests = -  [ -    Math.Geometry.Grid.TriangularQC.test,-    Math.Geometry.Grid.SquareQC.test,-    Math.Geometry.Grid.HexagonalQC.test,-    Math.Geometry.Grid.Hexagonal2QC.test,-    Math.Geometry.Grid.OctagonalQC.test,-    Math.Geometry.GridMap.LazyQC.test-  ]--main :: IO ()-main = defaultMain tests