js-dgtable: Obtain minified jquery.dgtable code

[ javascript, library, mit ] [ Propose Tags ]

This package bundles the minified jquery.dgtable 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 jquery.dgtable version. The package is designed to meet the redistribution requirements of downstream users (e.g. Debian).


[Skip to Readme]
Versions [faq] 0.5.2
Change log CHANGES.txt
Dependencies base (==4.*) [details]
License MIT
Copyright Neil Mitchell 2019
Author Neil Mitchell <ndmitchell@gmail.com>
Maintainer Neil Mitchell <ndmitchell@gmail.com>
Category Javascript
Home page https://github.com/ndmitchell/js-dgtable#readme
Bug tracker https://github.com/ndmitchell/js-dgtable/issues
Source repo head: git clone https://github.com/ndmitchell/js-dgtable.git
Uploaded by NeilMitchell at Fri Mar 15 16:12:23 UTC 2019
Distributions Arch:0.5.2, LTSHaskell:0.5.2, NixOS:0.5.2, Stackage:0.5.2
Downloads 998 total (179 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-03-15 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for js-dgtable-0.5.2

[back to package description]

js-dgtable Hackage version Stackage version Build Status

This package bundles the minified jquery.dgtable 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 jQuery version. The package is designed to meet the redistribution requirements of downstream users (e.g. Debian). As an example:

import qualified Language.Javascript.DGTable as DGTable

main = do
    putStrLn $ "jquery.dgtable version " ++ show DGTable.version ++ " source:"
    putStrLn =<< readFile =<< DGTable.file

This package installs data files containing the jquery.dgtable 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:

{-# LANGUAGE TemplateHaskell #-}

import Data.FileEmbed
import qualified Data.ByteString as BS
import qualified Language.Javascript.DGTable as DGTable
import Language.Haskell.TH.Syntax

main = print dgTableContents

dgTableContents :: BS.ByteString
dgTableContents = $(embedFile =<< runIO DGTable.file)