Monthly Downloads: 148
Programming language: JavaScript
License: MIT License
Tags: JavaScript     Js    
Latest version: v0.5.2

js-dgtable alternatives and similar packages

Based on the "js" category.
Alternatively, view js-dgtable alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of js-dgtable or a related project?

Add another 'js' Package


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)