xdot 0.3.0.4 → 0.3.0.5
raw patch · 4 files changed
+11/−10 lines, 4 files
Files
- src/Graphics/XDot/Parser.hs +2/−2
- src/Graphics/XDot/Types.hs +1/−1
- src/Graphics/XDot/Viewer.hs +3/−2
- xdot.cabal +5/−5
src/Graphics/XDot/Parser.hs view
@@ -4,7 +4,7 @@ Module : Graphics.XDot.Parser Copyright : (c) Dennis Felsing License : 3-Clause BSD-style- Maintainer : dennis@felsin9.de+ Maintainer : dennis@felsing.org After an xdot file has been opened using GraphViz, its drawing operations can be parsed using this module.@@ -295,7 +295,7 @@ let frac' = fromMaybe "" frac expn' = fromMaybe 0 expn ( return . fromRational . (* (10^^(expn' - fromIntegral (B.length frac'))))- . (%1) . Data.GraphViz.Parsing.runParser' parseInt) (ds `B.append` frac')+ . (% 1) . Data.GraphViz.Parsing.runParser' parseInt) (ds `B.append` frac') `P.onFail` fail "Expected a floating point number" where
src/Graphics/XDot/Types.hs view
@@ -2,7 +2,7 @@ Module : Graphics.XDot.Types Copyright : (c) Dennis Felsing License : 3-Clause BSD-style- Maintainer : dennis@felsin9.de+ Maintainer : dennis@felsing.org This module contains various types used to represent xdot parameters. -}
src/Graphics/XDot/Viewer.hs view
@@ -2,7 +2,7 @@ Module : Graphics.XDot.Viewer Copyright : (c) Dennis Felsing License : 3-Clause BSD-style- Maintainer : dennis@felsin9.de+ Maintainer : dennis@felsing.org This module draws the operations of an xdot graph using Cairo and Pango on a Gtk canvas.@@ -20,7 +20,8 @@ layoutGetContext, createLayout) import Graphics.Rendering.Cairo hiding (x, y) -import Control.Monad.State.Strict hiding (State)+import Control.Monad+import Control.Monad.State.Strict (evalStateT, modify, gets, lift) import qualified Control.Monad.State.Strict as MS import Control.DeepSeq
xdot.cabal view
@@ -1,12 +1,12 @@ name: xdot-version: 0.3.0.4+version: 0.3.0.5 license: BSD3 license-file: LICENSE category: Graphs, Graphics-cabal-version: >= 1.18+cabal-version: 1.18 build-type: Simple-author: Dennis Felsing <dennis@felsin9.de>-maintainer: Dennis Felsing <dennis@felsin9.de>+author: Dennis Felsing <dennis@felsing.org>+maintainer: Dennis Felsing <dennis@felsing.org> copyright: Dennis Felsing 2012-2019 synopsis: Parse Graphviz xdot files and interactively view them using GTK and Cairo description: Parse Graphviz xdot files and interactively view them using@@ -22,7 +22,7 @@ is now a separate project, in case anyone else may have a use for it. -tested-with: GHC == 8.0.2 || == 8.2.2 || == 8.4.4 || == 8.6.5+tested-with: GHC == 8.0.2 || == 8.2.2 || == 8.4.4 || == 8.6.5 || == 8.8.4 || == 8.10.7 || == 9.0.2 || == 9.2.8 || == 9.4.7 || == 9.6.3 || == 9.8.1 Extra-source-files: dot-examples/*.dot Library Exposed-modules: Graphics.XDot.Parser Graphics.XDot.Viewer Graphics.XDot.Types