File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 1919
2020module Main where
2121
22- import Data.RTree.Double.Strict (RTree , MBR )
23- import qualified Data.RTree.Double.Strict as R
24- import Data.RTree.Double.Strict.Debug
25- import qualified Data.RTree.Double.Strict.Unsafe as R
22+ import Data.RTree.D2.Double (RTree , MBR )
23+ import qualified Data.RTree.D2.Double as R
24+ import qualified Data.RTree.D2.Double.Unsafe as R
2625
2726import Control.Concurrent
2827import Control.Exception
2928import Control.Monad
3029import qualified Data.ByteString.Char8 as BSC
3130import Data.ByteString.Internal (ByteString (.. ))
3231import Data.ByteString.Unsafe
33- import Data.Colour
3432import Data.Colour.Names
3533import Data.Colour.SRGB
3634import Data.Colour.RGBSpace.HSV
@@ -401,7 +399,7 @@ mbr (R.UnsafeMBR xmin ymin xmax ymax) rgb =
401399 ]
402400
403401visualize :: Mode -> RTree a -> [Point ]
404- visualize mode ( R. Root r) = visual 0 r
402+ visualize mode = visual 0
405403 where
406404 wash i
407405 | i <= 0 = hsv (modeHue mode) 1 1
@@ -432,8 +430,8 @@ visualize mode (R.Root r) = visual 0 r
432430 R. Leaf4 ba _ bb _ bc _ bd _ ->
433431 mbr ba (toSRGB white) <> mbr bb (toSRGB white) <> mbr bc (toSRGB white) <> mbr bd (toSRGB white)
434432
435- visualize _ ( R. Leaf1 ba _) = mbr ba (toSRGB white)
436- visualize _ R. Empty = []
433+ R. Leaf1 ba _ -> mbr ba (toSRGB white)
434+ R. Empty -> []
437435
438436
439437draw :: State -> IO ()
You can’t perform that action at this time.
0 commit comments