hsx
HSX (Haskell Source with XML) allows literal XML syntax in Haskell source code.
HSX (Haskell Source with XML) allows literal XML syntax in Haskell source code.
The trhsx preprocessor translates .hsx source files into ordinary .hs files. Literal
XML syntax is translated into function calls for creating XML values of the appropriate
forms.
trhsx transforms literal XML syntax into a series of function calls. Any project
can make use of the syntax by providing definitions for those functions, and the
XML values produced will be of the types specified. This works for any types, since
trhsx doesn't make any assumptions, or inserts any information depending on types.
XMLGenerator defines a few typeclasses that together cover the functions injected by the
preprocessor. A project that uses these classes to provide the semantics for the injected
syntax will be able to use any functions written in terms of these, allowing better code
reusability than if each project defines its own semantics for the XML syntax. Also, the classes
makes it possible to use the literal syntax at different types within the same module.
Achieving that is not as simple as it may seem, but the XMLGenerator module provides all the
necessary machinery.
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 0.10.5 | 2013-09-05 19:59 UTC | NiklasBroberg | 1 revisions | +2/−2 lines, 1 filesdep ~haskell-src-extsdep ~utf8-string |
| 0.10.4 | 2012-06-14 20:42 UTC | NiklasBroberg | +5/−4 lines, 2 filesPVP ok | |
| 0.10.3 | 2012-05-30 12:15 UTC | NiklasBroberg | +12/−6 lines, 2 filesPVP ok | |
| 0.10.2 | 2012-04-24 08:11 UTC | NiklasBroberg | +4/−4 lines, 2 filesdep ~haskell-src-extsPVP ok | |
| 0.10.1 | 2012-04-23 13:41 UTC | NiklasBroberg | +3/−3 lines, 2 filesPVP ok | |
| 0.10.0 | 2012-04-23 13:39 UTC | NiklasBroberg | +115/−88 lines, 3 filesPVP ok | |
| 0.9.1 | 2011-05-25 13:50 UTC | NiklasBroberg | +3/−3 lines, 2 filesdep ~haskell-src-extsPVP: major bump suggested | |
| 0.9.0 | 2011-01-04 08:15 UTC | NiklasBroberg | +49/−18 lines, 3 filesdep ~haskell-src-extsPVP ok | |
| 0.7.0 | 2010-04-22 21:12 UTC | NiklasBroberg | +54/−23 lines, 4 filesdep ~basePVP ok | |
| 0.6.2 | 2010-02-19 11:16 UTC | NiklasBroberg | +1/−1 lines, 2 filesPVP ok | |
| 0.6.1 | 2009-12-26 14:49 UTC | NiklasBroberg | +4/−4 lines, 2 filesdep ~haskell-src-extsPVP ok | |
| 0.6.0 | 2009-12-26 13:26 UTC | NiklasBroberg | +45/−30 lines, 3 filesdep ~haskell-src-extsPVP ok | |
| 0.5.6 | 2009-06-26 11:11 UTC | NiklasBroberg | +2/−2 lines, 1 filesdep ~haskell-src-extsPVP ok | |
| 0.5.5 | 2009-06-18 23:34 UTC | NiklasBroberg | +2/−3 lines, 1 filesdep ~haskell-src-extsPVP ok | |
| 0.5.2 | 2009-06-18 17:25 UTC | NiklasBroberg | +3/−3 lines, 2 filesdep ~haskell-src-extsPVP ok | |
| 0.5.1 | 2009-06-17 00:36 UTC | NiklasBroberg | +2/−2 lines, 1 filesdep ~haskell-src-exts | |
| 0.5.0 | 2009-06-16 20:42 UTC | NiklasBroberg | +207/−154 lines, 4 filesdep ~basedep ~haskell-src-exts | |
| 0.4.8 | 2009-01-26 23:04 UTC | NiklasBroberg | +15/−14 lines, 2 filesdep ~haskell-src-exts | |
| 0.4.6 | 2008-11-19 14:10 UTC | NiklasBroberg | +386/−394 lines, 3 filesdep ~haskell-src-exts | |
| 0.4.5 | 2008-10-11 18:54 UTC | NiklasBroberg | +26/−17 lines, 4 filesdep +utf8-string | |
| 0.4.4 | 2008-05-17 23:14 UTC | NiklasBroberg | +2149/−194 lines, 6 files | |
| 0.4 | 2008-03-25 18:33 UTC | NiklasBroberg | +252/−0 lines, 5 filesdep +basedep +haskell-src-extsdep +mtlsetup-changed |
Dependencies of hsx-0.10.5
base (>=3 && <4) && >=4 && <5 4.22.0.0 → 4.22.1.0
| 2026-12-01 12:38 UTC | 4.22.1.0 outside bounds | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 outside bounds | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 outside bounds | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 outside bounds | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 outside bounds | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
haskell-src-exts >=1.13 && <1.14 1.13.5 → 1.24.0 newer than bounds
| 2026-07-04 05:40 UTC | 1.24.0 newer than bounds | +1040/−69 lines, 33 filesdep ~arraydep ~ghc-primdep ~prettyPVP ok |
| 2020-06-02 02:38 UTC | 1.23.1 newer than bounds | +16/−8 lines, 7 filesdep ~basePVP ok |
| 2020-01-03 21:30 UTC | 1.23.0 newer than bounds | +1756/−13 lines, 20 filesPVP ok |
| 2019-11-01 02:20 UTC | 1.22.0 newer than bounds | +34529/−31943 lines, 66 filesPVP ok |
| 2019-09-03 18:17 UTC | 1.21.1 newer than bounds | +35/−440 lines, 10 filesdep ~basenew-uploaderPVP: major bump suggested |
showing 5 of 91 versions
mtl >=0 2.3.1 → 2.3.2
| 2025-12-08 04:58 UTC | 2.3.2 | +112/−21 lines, 12 filesdep ~basenew-uploaderPVP: major bump suggested |
| 2022-10-31 21:28 UTC | 2.3.1 | +188/−33 lines, 8 filesdep ~basePVP: major bump suggested |
| 2022-05-07 20:34 UTC | 2.3 | +1284/−520 lines, 29 filesdep ~basedep ~transformersnew-uploaderPVP ok |
| 2018-02-24 22:15 UTC | 2.2.2 | +152/−36 lines, 14 filesdep ~basePVP: major bump suggested |
| 2014-06-02 02:22 UTC | 2.2.1 | +179/−4 lines, 8 filesdep ~basedep ~transformersPVP: major bump suggested |
showing 5 of 20 versions
utf8-string <1 0.3.8 → 1.0.2 newer than bounds
| 2021-01-03 18:33 UTC | 1.0.2 newer than bounds | +286/−46 lines, 8 filesdep +HUnitdep +utf8-stringdep ~basePVP: major bump suggested |
| 2015-08-23 16:19 UTC | 1.0.1.1 newer than bounds | +12/−2 lines, 3 filesdep ~basePVP ok |
| 2015-08-21 22:38 UTC | 1.0.1 newer than bounds | +71/−3 lines, 3 filesdep ~basePVP: major bump suggested |
| 2015-01-23 01:51 UTC | 1 newer than bounds | +17/−194 lines, 5 filesdep ~basePVP ok |
| 2014-05-19 08:05 UTC | 0.3.8 | +50/−7 lines, 9 filesdep ~basePVP ok |
showing 5 of 16 versions
Reverse dependencies
7 packages depend on hsx