]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - src/Values.hs
Bump dependencies, and move some Arbitrary code from Values.hs to Grid.hs to avoid...
[spline3.git] / src / Values.hs
index b5dc15a9c6299bb0ec74511a8e561d6c0bdcf09a..7fc577529f9ccdd2ce0fe1fc85cf14d8744e1e21 100644 (file)
@@ -23,8 +23,6 @@ import Data.Array.Repa (
   )
 
 import System.FilePath ()
-import Test.QuickCheck (Arbitrary(..), Gen, choose, vectorOf)
-
 
 import ScaleFactor (ScaleFactor)
 
@@ -34,18 +32,6 @@ type Values2D  = Values DIM2
 type Values3D  = Values DIM3
 
 
-instance Arbitrary Values3D where
-    arbitrary = do
-      -- I declare not to care about empty lists.
-      x_dim <- choose (1, 27)
-      y_dim <- choose (1, 27)
-      z_dim <- choose (1, 27)
-      elements <- vectorOf (x_dim * y_dim * z_dim) (arbitrary :: Gen Double)
-      let new_shape = (Z :. x_dim :. y_dim :. z_dim)
-      let three_d = Data.Array.Repa.fromListUnboxed new_shape elements
-      return three_d
-
-
 empty3d :: Values3D
 empty3d = Data.Array.Repa.fromListUnboxed (Z :. 0 :. 0 :. 0) []