PARSER: improve function names

This commit is contained in:
2015-02-04 00:27:52 +01:00
parent a33b451740
commit 44fee35926
3 changed files with 12 additions and 12 deletions

View File

@@ -36,4 +36,4 @@ gifDiag p xs =
-- |Same as gifDiag, except that it takes a string containing the
-- mesh file content instead of the the points.
gifDiagS :: DiagProp -> B.ByteString -> [(Diagram Cairo R2, GifDelay)]
gifDiagS p = gifDiag p . filterValidPT p . meshToArr
gifDiagS p = gifDiag p . filterValidPT p . meshVertices

View File

@@ -61,8 +61,8 @@ diagS :: DiagProp -> B.ByteString -> Diagram Cairo R2
diagS p mesh =
diag p diagAlgos
. fmap (filterValidPT p)
. (\x -> if null x then [meshToArr mesh] else x)
. facesToArr
. (\x -> if null x then [meshVertices mesh] else x)
. meshFaceVertices
$ mesh
@@ -72,7 +72,7 @@ diagTreeS :: DiagProp -> B.ByteString -> Diagram Cairo R2
diagTreeS p mesh =
diag p diagTreAlgos
. fmap (filterValidPT p)
. (\x -> if null x then [meshToArr mesh] else x)
. facesToArr
. (\x -> if null x then [meshVertices mesh] else x)
. meshFaceVertices
$ mesh