module SVG where import Types svg :: [Point] -> [(Point,Point)] -> String svg pts edges = unlines $ [ "" ] ++ [svgEdge (roundp p) (roundp q) | (p,q) <- edges] ++ [svgPoint (roundp p) | p <- pts] ++ [""] svgPoint :: (Int,Int) -> String svgPoint (x, y) = "" svgEdge :: (Int,Int) -> (Int,Int) -> String svgEdge (x1,y1) (x2,y2) = "" roundp :: Point -> (Int,Int) roundp (x,y) = (round x, round y)