ansigraph 0.3.0.0 → 0.3.0.1
raw patch · 2 files changed
+4/−4 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- System.Console.Ansigraph.Core: graph :: Graphable a => a -> IO ()
+ System.Console.Ansigraph.Core: graph :: MonadIO m => Graphable a => a -> m ()
- System.Console.Ansigraph.Core: posAnim :: [[Double]] -> IO ()
+ System.Console.Ansigraph.Core: posAnim :: MonadIO m => [[Double]] -> m ()
- System.Console.Ansigraph.Core: posGraph :: [Double] -> IO ()
+ System.Console.Ansigraph.Core: posGraph :: MonadIO m => [Double] -> m ()
Files
ansigraph.cabal view
@@ -1,5 +1,5 @@ name: ansigraph-version: 0.3.0.0+version: 0.3.0.1 synopsis: Terminal-based graphing via ANSI and Unicode description: Ansigraph is an ultralightweight terminal-based graphing utility. It uses
src/System/Console/Ansigraph/Core.hs view
@@ -123,7 +123,7 @@ -- | Invokes the 'Graphable' type class method 'graphWith' with the -- default 'GraphSettings' record, 'graphDefaults'.-graph :: Graphable a => a -> IO ()+graph :: MonadIO m => Graphable a => a -> m () graph = graphWith graphDefaults @@ -216,9 +216,9 @@ ---- helpers for graphing/animating strictly-positive real functions ---- -- | Display a graph of the supplied (non-negative) real vector.-posGraph :: [Double] -> IO ()+posGraph :: MonadIO m => [Double] -> m () posGraph = graph . PosGraph -- | Display an animation of the supplied list of (non-negative) real vectors.-posAnim :: [[Double]] -> IO ()+posAnim :: MonadIO m => [[Double]] -> m () posAnim = animate . map PosGraph