The hjsmin package

[ Tags: bsd3, library, program, web ] [ Propose Tags ]

Reduces size of javascript files by stripping out extraneous whitespace and other syntactic elements, without changing the semantics.

[Skip to Readme]


Versions 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.11, 0.0.12, 0.0.13, 0.0.14, 0.0.15, 0.0.16, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4,,,,,,,,,,,,,,,,
Dependencies base (==4.*), blaze-builder (>=0.2 && <1), bytestring (==0.9.*), containers (>=0.2 && <0.5), HUnit, language-javascript (>=0.4.4 && <0.5), QuickCheck (==2.*), test-framework, test-framework-hunit, text (>=0.8 && <1) [details]
License BSD3
Author Alan Zimmerman <>
Maintainer Alan Zimmerman <>
Category Web
Home page
Bug tracker
Source repo head: git clone git://
Uploaded Fri Feb 3 14:16:17 UTC 2012 by AlanZimmerman
Distributions Arch:, Debian:, Fedora:, FreeBSD:, LTSHaskell:, NixOS:, Stackage:, openSUSE:
Executables runtests
Downloads 36945 total (190 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI





Build the executable to run unit tests


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees

Readme for hjsmin-0.0.15

[back to package description]


Haskell implementation of a javascript minifier

It is intended to be used in conjunction with Hamlet, part of Yesod.

As such, much of the structure of the package is shamelessly copied from Hamlet.


How to build


cabal clean && cabal configure && cabal build


cabal clean && cabal configure -fbuildtests && cabal build

Running the tests



0.0.15 - Fix GHC 7.4.1 compile compatibility. Patch accepted from

0.0.14 - Allow unicode characters in comments

0.0.13 - Error in parsing numbers with zeros before decimal point

0.0.12 - Worked in Michael Snoyman's fix for unicode output

0.0.11 - Worked in language-javascript 0.4.*, with source locations in the AST Worked in processing of property get/set in object literals 0.0.10 - Removed attoparsec dependency and historical Parse/Token