packages feed

gvti 0.4.0.0 → 0.4.1.0

raw patch · 5 files changed

+20/−8 lines, 5 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ GVTI: makeRecordGv :: String -> Maybe (Double, Double) -> String -> (Array Int String, String) -> String

Files

ChangeLog.md view
@@ -31,6 +31,11 @@ ## 0.4.0.0 -- 2023-05-11  * Fourth version. Added two new command line parameters and arguments to the function process2.-Updated the README.md file with the related information. Some code deduplication. Added devotion+Updated the README.markdown file with the related information. Some code deduplication. Added devotion to the project. Added cli-arguments as a new lightweight dependency for the project.++## 0.4.1.0 -- 2023-05-12++* Fourth version revised. Fixed issue with inaccurate documentation. Added makeRecordGv function+to the exports of the GVTI module. Some documentation improvements. 
GVTI.hs view
@@ -10,12 +10,12 @@ Maintainer  : oleksandr.zhabenko@yahoo.com Stability   : Experimental -A program @gvti@ converts a specially formated @.csv@ file with a colon as a field separator obtained from the electronic table+A program @gvti@ converts a specially formated @.csv@ file with a special field separator obtained from the electronic table into a visualized by GraphViz graph in the one of the supported by GraphViz graphics format. The proper GraphViz installation is required. This is the main functionality module. -} -module GVTI (getFormat,process2) where+module GVTI (getFormat,process2,makeRecordGv) where  import GHC.Base import GHC.List@@ -157,10 +157,15 @@                      where rRat = readMaybe ratio::Maybe Double {-# INLINE makeRecordGv #-} --- | Processes the given text (the first 'String' argument). The second one is used to get a name of the command to be+-- | Processes the given text (the last 'String' argument). The first 'String' argument is +-- the list oof delimiters every one of which will mark the edge in the resulting digraph. +-- The second one is used to get a name of the command to be -- executed to obtain a visualization file. The third argument is used for the 'getFormat'. The fourth argument is the--- basic name for the created files (without prefixes and extensions), the fifth one is an option for GraphVize splines--- functionality. The sixth argument is used to specify whether to remove at-signs from the created files.+-- basic name for the created files (without prefixes and extensions), the fifth one is an option for GraphViz splines+-- functionality. The sixth argument is used to specify whether to remove at-signs from the created files. +-- The 'Maybe' argument specifies the optional maximum size for the created visualization image in inches.+-- The next argument specifies the aspect ratio (drawing height/drawing width) for the drawing. +-- process2 :: String -> String -> String -> String -> String -> String -> Maybe (Double, Double) -> String -> String -> IO () process2 delims xxs yys bnames splines remAts sizes ratio text  | null text = error "GVTI.process2: Empty text to be processed! "
GVTI/Formatting.hs view
@@ -9,6 +9,7 @@ Maintainer  : oleksandr.zhabenko@yahoo.com Stability   : Experimental +Some functions used for formatting of the data for further GraphViz processment. -}  {-# LANGUAGE NoImplicitPrelude #-}@@ -36,6 +37,7 @@ formatBothStr m n x = formatBStr m x . formatEStr n x {-# INLINE formatBothStr  #-} +-- | Applies needed formatting for the data to be acceptable for GraphViz. formatLines :: Char -> [String] -> [String] formatLines x xss = map (\(xs,n,m) -> formatBothStr n m x $ xs) . zip3 ws j2s $ ms   where (!js,!rs) = unzip . map (span isDigit) $ xss
Main.hs view
@@ -6,7 +6,7 @@ Maintainer  : oleksandr.zhabenko@yahoo.com Stability   : Experimental -A program @gvti@ converts a specially formated @.csv@ file with a colon as a field separator obtained from the electronic table +A program @gvti@ converts a specially formated @.csv@ file with a field separator (delimiter) obtained from the electronic table  into a visualized by GraphViz graph in the one of the supported by GraphViz format. The proper GraphViz installation is required. -} 
gvti.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                gvti-version:             0.4.0.0+version:             0.4.1.0 synopsis:            GraphViz Tabular Interface description:         Introduces a new file extension .gvti and is a special tabular or line-based GraphViz subset interface. Is a fork of the now deprecated mmsyn4 package. homepage:            https://hackage.haskell.org/package/gvti