vacuum-ubigraph 0.2.0.1 → 0.2.0.2
raw patch · 2 files changed
+10/−8 lines, 2 files
Files
- System/Vacuum/Ubigraph.hs +6/−4
- vacuum-ubigraph.cabal +4/−4
System/Vacuum/Ubigraph.hs view
@@ -1,3 +1,4 @@+-- | Interactively visualize Haskell heap values using Ubigraph module System.Vacuum.Ubigraph ( Options(..), hubigraphView,@@ -26,7 +27,7 @@ externNodeStyle :: [VAttr] } --- | hubigraphView - render a value in the Hubigraph monad+-- | 'hubigraphView' renders a value in the Hubigraph monad hubigraphView :: a -> Options -> Hubigraph () hubigraphView a options = do clear@@ -99,13 +100,14 @@ externNodeStyle = defaultExternNodeStyle } --- | defaultServer is "http://127.0.0.1:20738/RPC2"+-- | 'defaultServer' is an URL of the Ubigraph RPC server invoked by the 'view' function, +-- its value is <http://127.0.0.1:20738/RPC2> defaultServer = "http://127.0.0.1:20738/RPC2" --- | customView - render value+-- | 'customView' renders value with custom settings customView :: Options -> String -> a -> IO () customView options server a = runHubigraph (hubigraphView a options) (Ubigraph server) --- | view - render value with default settings+-- | 'view' renders value with default settings view :: a -> IO () view = customView defaultOptions defaultServer
vacuum-ubigraph.cabal view
@@ -1,5 +1,5 @@ name: vacuum-ubigraph-version: 0.2.0.1+version: 0.2.0.2 cabal-version: >= 1.2 build-type: Simple license: BSD3@@ -11,11 +11,11 @@ synopsis: Visualize Haskell data structures using vacuum and Ubigraph description: Visualize Haskell data structures using vacuum and Ubigraph .- To use it, you'll have to install Ubigraph first, see "http://ubietylab.net/ubigraph/"+ To use it, you'll have to install Ubigraph first, see <http://ubietylab.net/ubigraph/> .- Then run ubigraph server with default settings (with a command like '$UBIGRAPH_DIR/bin/ubigraph_server')+ Then run ubigraph server with default settings (with a command like $UBIGRAPH_DIR\/bin\/ubigraph_server) .- Then load System.Vacuum.Ubigraph module into the ghci session and use `view' function, e.g.+ Then load System.Vacuum.Ubigraph module into the ghci session and use 'view' function, e.g. . > view [1..3] library