Minor cleanup
This commit is contained in:
parent
6c0a1c7572
commit
f9f8b04ea9
3
Main.hs
3
Main.hs
@ -4,7 +4,6 @@ import Diagram
|
|||||||
import Diagrams.Prelude
|
import Diagrams.Prelude
|
||||||
import Diagrams.Backend.Cairo
|
import Diagrams.Backend.Cairo
|
||||||
import Diagrams.Backend.Cairo.Internal
|
import Diagrams.Backend.Cairo.Internal
|
||||||
import Diagrams.Backend.Gtk
|
|
||||||
import Graphics.UI.Gtk
|
import Graphics.UI.Gtk
|
||||||
|
|
||||||
|
|
||||||
@ -22,7 +21,7 @@ main = do
|
|||||||
dw <- widgetGetDrawWindow da
|
dw <- widgetGetDrawWindow da
|
||||||
let (png, r) = renderDia Cairo
|
let (png, r) = renderDia Cairo
|
||||||
(CairoOptions "jo.svg" (Width 600) SVG False)
|
(CairoOptions "jo.svg" (Width 600) SVG False)
|
||||||
(diagFromString $ mesh)
|
(diagFromString mesh)
|
||||||
png
|
png
|
||||||
renderWithDrawable dw r
|
renderWithDrawable dw r
|
||||||
return True
|
return True
|
||||||
|
2
Util.hs
2
Util.hs
@ -12,7 +12,7 @@ inRange (x, y) min' max'
|
|||||||
|
|
||||||
|
|
||||||
-- |Filter the valid coordinates.
|
-- |Filter the valid coordinates.
|
||||||
filterValidCoords :: Double -- ^ min
|
filterValidCoords :: Double -- ^ min
|
||||||
-> Double -- ^ max
|
-> Double -- ^ max
|
||||||
-> [(Double, Double)] -- ^ unfiltered
|
-> [(Double, Double)] -- ^ unfiltered
|
||||||
-> [(Double, Double)] -- ^ filtered
|
-> [(Double, Double)] -- ^ filtered
|
||||||
|
Loading…
Reference in New Issue
Block a user