js-dgtable: Obtain minified jquery.dgtable code

[ javascript, library, mit ] [ Propose Tags ] [ Report a vulnerability ]

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]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.5.2
Change log CHANGES.txt
Dependencies base (>=4 && <5) [details]
Tested with ghc ==8.6.4, ghc ==8.4.4, ghc ==8.2.2, ghc ==8.0.2, ghc ==7.10.3
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 2019-03-15T16:12:23Z
Distributions Arch:0.5.2, Debian:0.5.2, Fedora:0.5.2, LTSHaskell:0.5.2, NixOS:0.5.2, Stackage:0.5.2
Reverse Dependencies 3 direct, 92 indirect [details]
Downloads 14471 total (170 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-03-15 [all 1 reports]

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)