From f80f12fd2b4a73c763839304080ee7e3ddc7ab77 Mon Sep 17 00:00:00 2001 From: Adrian Cochrane Date: Fri, 19 Jan 2024 13:25:57 +1300 Subject: [PATCH] Clarify how to run, release 0.1.0.2 --- README.md | 4 +++- app/Main.hs | 1 + bureaucromancy.cabal | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b06953a..bf6e78b 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,6 @@ Bureaucromancy is a module for parsing webforms out of webpages with the aid of XML-Conduit or HTML-Conduit. This aids rendering these forms independently of the rest of the page, with support for hypertext rendering built-in. -Run `cabal run bureaucromancy form.html` to run a local serverside webapp facilitate entering data into the first webform found in the HTML file `form.html`. Run `cabal test` to verify that forms are parsed correctly from an XML-Conduit Document. +Run `cabal run bureaucromancy form.html` to run a local serverside webapp facilitate entering data into the first webform found in the HTML file `form.html`, serving from http://localhost:2018/ . + +As a UI-centric component, a test-suite hasn't been implemented yet. It hasn't been prioritized due to the ease of manual testing. diff --git a/app/Main.hs b/app/Main.hs index 7ea76d0..73fad33 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -26,6 +26,7 @@ main = do [] -> ("form.html", "0") doc <- HTML.readFile filename let form = ensureButtons $ fromJust $ parseDocument doc $ Txt.pack ident + putStrLn "http://127.0.0.1:2018/" runEnv 2018 $ servePage form servePage :: Form -> Application diff --git a/bureaucromancy.cabal b/bureaucromancy.cabal index b01b99a..19da278 100644 --- a/bureaucromancy.cabal +++ b/bureaucromancy.cabal @@ -20,7 +20,7 @@ name: bureaucromancy -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change -version: 0.1.0.1 +version: 0.1.0.2 -- A short (one-line) description of the package. synopsis: Parse webforms & render to interactive hypertext -- 2.30.2