-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Obtain minified chart.js code -- -- This package bundles the minified chart.js code into a Haskell -- package, so it can be depended upon by Cabal packages. The first three -- components of the version number match the upstream chart.js version. -- The package is designed to meet the redistribution requirements of -- downstream users (e.g. Debian). This package is a fork of -- js-flot using chart.js instead of flot. @package js-chart @version 2.9.4 -- | Module for accessing minified chart code -- (http://www.chartjs.org/). As an example: -- --
-- import qualified Language.Javascript.Chart as Chart -- -- main = do ---- -- TODO check > putStrLn $ "Chart version " ++ show Chart.version ++ " -- source:" > putStrLn =<< readFile =<< Chart.file -- Chart.Chart -- -- This package installs data files containing the chart.js -- sources, which must be available at runtime. If you want to produce an -- executable with no dependency on associated data files, you can use -- the file-embed library -- (https://hackage.haskell.org/package/file-embed): -- --
-- {-# LANGUAGE TemplateHaskell #-}
--
-- import Data.FileEmbed
-- import qualified Data.ByteString as BS
-- import qualified Language.Javascript.Chart as Chart
-- import Language.Haskell.TH.Syntax
--
-- main = print chartContents
--
-- chartContents :: BS.ByteString
-- chartContents = $(embedFile =<< runIO (Chart.file Chart.Chart))
--
module Language.Javascript.Chart
-- | The Chart code to obtain.
data Chart
-- | The base chart.js system.
Chart :: Chart
-- | The base system, plus a compliant version of the moment.js time
-- and date library.
ChartBundle :: Chart
-- | chart.js CSS, usually unnecessary. See here.
ChartCSS :: Chart
-- | The version of Chart provided by this package. Not necessarily the
-- version of this package, but the versions will match in the first
-- three digits.
version :: Version
-- | A local file containing the minified chart.js code for version.
file :: Chart -> IO FilePath
instance Data.Data.Data Language.Javascript.Chart.Chart
instance GHC.Enum.Enum Language.Javascript.Chart.Chart
instance GHC.Enum.Bounded Language.Javascript.Chart.Chart
instance GHC.Read.Read Language.Javascript.Chart.Chart
instance GHC.Show.Show Language.Javascript.Chart.Chart
instance GHC.Classes.Ord Language.Javascript.Chart.Chart
instance GHC.Classes.Eq Language.Javascript.Chart.Chart