Commits

Eric Rochester committed 9ff87b3

Added hsparklines dependency and configuration.

Comments (0)

Files changed (2)

 
 import System.Environment
+import Graphics.Rendering.HSparklines
 
 main :: IO ()
 main =
-    putStr "Hello World!\n"
+    make barSpark inputs >>= savePngFile "bar_spark.png"
+    where
+        inputs :: [Float]
+        inputs = [24, 21, 13, 8, 9, 17, 34, 42, 13, 5, 3]
 
   
   -- Packages needed in order to build this package.
   Build-depends:       base>=4.0
+                     , hsparklines>=0.1
   
   -- Modules not exported by this package.
   -- Other-modules: