devforms: A builder DSL for HTML survey forms with built-in server and storage
devforms is a Haskell library for building HTML survey forms using a
monadic builder DSL. It bundles a Scotty web server with htmx and
_hyperscript for client-side interactivity, Lucid2 for HTML rendering,
and Pico CSS for styling. Submissions are stored as JSONL files.
.
import DevForms
.
main :: IO ()
main = devFormServer 9000 $ do
form "My survey" "mysurvey" $ do
questionLikert "I enjoy surveys"
questionChoice "Favourite colour" [Red, Green, Blue]
questionDate "Pick a date"
Downloads
- devforms-0.1.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.1.0.0 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | aeson (>=2.1 && <2.3), base (>=4.18 && <5), containers (>=0.6 && <0.9), devforms, file-embed (>=0.0.15 && <0.1), filepath (>=1.4 && <1.6), htmx-lucid (>=0.2 && <0.3), http-types (>=0.12 && <0.13), lucid2 (>=0.0.20230706 && <0.1), mtl (>=2.2 && <2.4), relude (>=1.2 && <1.3), scotty (>=0.22 && <0.31), string-interpolate (>=0.3 && <0.4), time (>=1.12 && <1.16), wai (>=3.2 && <3.3), warp (>=3.3 && <3.5) [details] |
| License | BSD-3-Clause |
| Copyright | 2026 Lassi Haasio |
| Author | Lassi Haasio |
| Maintainer | ilikeavocadoes@devmail.cc |
| Uploaded | by LassiHaasio at 2026-06-05T09:51:24Z |
| Category | Web |
| Source repo | head: git clone https://git.sr.ht/~ilikeavocadoes/devforms |
| Distributions | |
| Executables | example |
| Downloads | 0 total (0 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs available [build log] Last success reported on 2026-06-05 [all 1 reports] |