| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sat, 17 Jan 2026 01:33:47 GMT
X-Served-By: cache-dfw-kdfw8210066-DFW, cache-bom-vanm7210089-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768613627.977853,VS0,VE290
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
miso-from-html: Convert HTML to miso View syntax
miso-from-html: Convert HTML to miso View syntax
Downloads
- miso-from-html-0.2.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, 0.2.0.0 |
|---|---|
| Dependencies | attoparsec, base (<5), bytestring, containers, pretty-simple, text [details] |
| License | BSD-3-Clause |
| Copyright | (c) David Johnson 2020 |
| Author | David Johnson |
| Maintainer | djohnson.m@gmail.com |
| Uploaded | by DavidJohnson at 2020-05-27T01:24:20Z |
| Category | Web |
| Bug tracker | https://github.com/dmjio/miso-from-html/issues |
| Source repo | head: git clone https://github.com/dmjio/miso-from-html.git |
| Distributions | NixOS:0.2.0.0 |
| Executables | miso-from-html |
| Downloads | 826 total (5 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs not available [build log] Last success reported on 2020-05-27 [all 3 reports] |
Readme for miso-from-html-0.2.0.0
[back to package description]miso-from-html
Convert HTML into miso View syntax.
Features
- Strips comments
- Pretty prints style tags as a Haskell
MapfromData.Map
Usage
Given some HTML
<nav class="navbar" role="navigation">
<div class="navbar-brand">
<a class="navbar-item" href="https://bulma.io">
<img src="https://bulma.io/images/bulma-logo.png" width="112" height="28">
<a>ok<p>hey</p></a>
</a>
</div>
</nav>
Convert it to miso View syntax.
$ cabal run miso-from-html < index.html
Result
nav_
[ class_ "navbar"
, role_ "navigation"
]
[ div_ [ class_ "navbar-brand" ]
[ a_
[ class_ "navbar-item"
, href_ "https://bulma.io"
]
[ img_
[ src_ "https://bulma.io/images/bulma-logo.png"
, width_ "112"
, height_ "28"
]
, a_ []
[ "ok"
, p_ [][ "hey" ]
]
]
]
]
Test
$ nix-shell --run 'runghc Main.hs < index.html'
