Skip to content

Commit

Permalink
cleaning up stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
noinia committed Nov 18, 2023
1 parent a3a538a commit 0d932aa
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ jobs:
restore-keys: ${{ runner.os }}-${{ matrix.compiler }}-
- name: haddock
run: |
$CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all > haddock.raw.txt
"$HOME/.ghcup/bin/ghcup" set ghc "$HCVER"
$CABAL haddock-project --with-haddock=$HADDOCK --with-ghc=$HC
$CABAL haddock --disable-documentation --haddock-all $ARG_TESTS $ARG_BENCH all > haddock.raw.txt
# $CABAL haddock-project
env:
HCVER: ${{ matrix.compilerVersion }}
- name: haddock-badge
Expand Down
2 changes: 1 addition & 1 deletion hgeometry-examples/voronoiDiagram/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ viewModel m = div_ [ ]
]
canvasBody
, div_ [ onClick AddPoint ]
[text $ "add point" ]
[text "add point" ]
, div_ []
[text . ms . show $ m^.canvas.mouseCoordinates ]
, div_ []
Expand Down
2 changes: 1 addition & 1 deletion hgeometry/ipe/test/Ipe/ReaderSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec = do
useSym = Symbol (Point2 320 736) "mark/disk(sx)"
-- symAttrs =

translatedUse = "<use matrix=\"1 0 0 1 4.44908 -4.21815\" name=\"mark/disk(sx)\" pos=\"320 736\" size=\"normal\" stroke=\"black\"/>"
-- translatedUse = "<use matrix=\"1 0 0 1 4.44908 -4.21815\" name=\"mark/disk(sx)\" pos=\"320 736\" size=\"normal\" stroke=\"black\"/>"



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import HGeometry.HalfSpace
import HGeometry.HyperPlane (HyperPlane(..))
import HGeometry.HyperPlane.NonVertical (NonVerticalHyperPlane(..))
import HGeometry.Interval
import HGeometry.Interval.EndPoint
import HGeometry.Interval.EndPoint()
import HGeometry.Line.LineEQ
import HGeometry.Line.PointAndVector
import HGeometry.LineSegment
Expand Down
1 change: 0 additions & 1 deletion hgeometry/kernel/test/HGeometry/BoxSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import HGeometry.Point
import HGeometry.Vector
import Test.Hspec
import Test.Hspec.QuickCheck
import Test.QuickCheck
-- import Test.Util

--------------------------------------------------------------------------------
Expand Down
12 changes: 6 additions & 6 deletions hgeometry/svg/test/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
{-# LANGUAGE QuasiQuotes #-}
module Main (main) where

import qualified Data.Text.Lazy.IO as Text
-- import qualified Data.Text.Lazy.IO as Text
import HGeometry.Box
import HGeometry.Miso.Svg
import HGeometry.Miso.Svg.StaticCanvas
import HGeometry.Point
import Ipe
import qualified Miso
-- import qualified Miso
import Miso.Svg
import System.OsPath
--------------------------------------------------------------------------------

main :: IO ()
main = renderSvgToFile [osp|/tmp/foo.svg|] myCanvasDrawing

myDrawing = svg_ [ height_ "600", width_ "800" ]
[ draw (Rectangle (Point2 10 20) (Point2 100 (200 :: Int)))
[stroke_ "green" ]
]
-- myDrawing = svg_ [ height_ "600", width_ "800" ]
-- [ draw (Rectangle (Point2 10 20) (Point2 100 (200 :: Int)))
-- [stroke_ "green" ]
-- ]

myCanvas :: StaticCanvas Double
myCanvas = staticCanvas 800 600
Expand Down
12 changes: 5 additions & 7 deletions hgeometry/test-with-ipe/test/LineSegmentSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,21 @@ module LineSegmentSpec where

import Control.Lens
import Control.Monad ((>=>))
import Data.Bifunctor
import Data.Vinyl
import HGeometry.Boundary
import HGeometry.Box
-- import HGeometry.Box
-- import HGeometry.Boundary
import HGeometry.Ext
import HGeometry.Intersection
import HGeometry.Line
-- import HGeometry.Intersection
-- import HGeometry.Line
import HGeometry.LineSegment
import HGeometry.Number.Real.Rational
import HGeometry.Point
import HGeometry.Vector
-- import HGeometry.Vector
import Ipe
import Ipe.Color
import Paths_hgeometry
import System.OsPath
import Test.Hspec
import Test.QuickCheck
import Test.QuickCheck.Instances ()

--------------------------------------------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions hgeometry/test-with-ipe/test/VoronoiDiagram/VoronoiSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ module VoronoiDiagram.VoronoiSpec
import Control.Lens
import Data.Default.Class
import Golden
import HGeometry.Combinatorial.Util
import HGeometry.Duality
-- import HGeometry.Combinatorial.Util
-- import HGeometry.Duality
import HGeometry.Ext
import HGeometry.HyperPlane.Class
import HGeometry.HyperPlane.NonVertical
import HGeometry.LowerEnvelope
-- import HGeometry.LowerEnvelope
import HGeometry.Number.Real.Rational
import HGeometry.Point
import HGeometry.Vector
Expand All @@ -22,7 +22,7 @@ import Ipe.Color
import System.OsPath
import Test.Hspec
import Test.QuickCheck.Instances ()
import Test.Util
-- import Test.Util

--------------------------------------------------------------------------------

Expand Down
10 changes: 5 additions & 5 deletions hgeometry/test/Polygon/TriangulateSpec.hs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{-# LANGUAGE OverloadedStrings #-}
module Polygon.TriangulateSpec (spec) where

import Control.Lens
import qualified Data.Vector as V
import HGeometry
import HGeometry.Ext
-- import Control.Lens
-- import qualified Data.Vector as V
-- import HGeometry
-- import HGeometry.Ext
-- import HGeometry.PlanarSubdivision (PolygonFaceData)
-- import HGeometry.PlaneGraph
-- import HGeometry.PolygonSpec ()
-- import HGeometry.PolygonTriangulation.Triangulate
-- import HGeometry.PolygonTriangulation.Types
import Test.Hspec
import Test.Hspec.QuickCheck
-- import Test.Hspec.QuickCheck
import Test.QuickCheck.Instances ()

--------------------------------------------------------------------------------
Expand Down

0 comments on commit 0d932aa

Please sign in to comment.