Style
This commit is contained in:
parent
884a8a3121
commit
ae019e86ed
@ -35,6 +35,7 @@ diagFromVTable prop vt
|
|||||||
t prop :: Diagram Cairo R2) # fc black
|
t prop :: Diagram Cairo R2) # fc black
|
||||||
mkPoint (x,y) = p2 (x,y)
|
mkPoint (x,y) = p2 (x,y)
|
||||||
|
|
||||||
|
|
||||||
-- |Create the Diagram from a String.
|
-- |Create the Diagram from a String.
|
||||||
diagFromString :: DiagProp -> String -> Diagram Cairo R2
|
diagFromString :: DiagProp -> String -> Diagram Cairo R2
|
||||||
diagFromString prop mesh
|
diagFromString prop mesh
|
||||||
|
@ -10,7 +10,7 @@ type VTable = [(Double, Double)]
|
|||||||
-- an array of float tuples.
|
-- an array of float tuples.
|
||||||
meshToArr :: String -- ^ the string to convert
|
meshToArr :: String -- ^ the string to convert
|
||||||
-> VTable -- ^ the resulting vertice table
|
-> VTable -- ^ the resulting vertice table
|
||||||
meshToArr xs = fmap (\(Just (x, _)) -> x) .
|
meshToArr xs = fmap (\(Just (x, _)) -> x) .
|
||||||
filter (/= Nothing) .
|
filter (/= Nothing) .
|
||||||
fmap (runParser parseVertice) .
|
fmap (runParser parseVertice) .
|
||||||
lines $
|
lines $
|
||||||
|
Loading…
Reference in New Issue
Block a user