| 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 05:02:38 GMT
X-Served-By: cache-dfw-kdal2120049-DFW, cache-bom-vanm7210074-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768626158.808209,VS0,VE411
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
mquickjs-hs: Wrapper for the Micro QuickJS JavaScript Engine
[Skip to Readme]
mquickjs-hs: Wrapper for the Micro QuickJS JavaScript Engine
This library is a wrapper for Micro QuickJS, a compact JavaScript Engine.
To get started, see the Readme below.
[Skip to Readme]
Downloads
- mquickjs-hs-0.1.2.4.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.2.4 |
|---|---|
| Change log | changelog.md |
| Dependencies | aeson (>=2.0 && <2.3), base (>=4.11 && <5), bytestring (>=0.10 && <0.13), containers (>=0.5 && <0.8), exceptions (>=0.8 && <0.11), inline-c (>=0.5 && <0.10), mtl (>=2.2.2 && <2.4), scientific (>=0.3.5 && <0.4), string-conv (>=0.1.2 && <0.3), text (>=1.2.0 && <2.2), time (>=1.8 && <1.14), transformers (>=0.5 && <0.7), unliftio-core (>=0.1 && <0.3), unordered-containers (>=0.2.8 && <0.3), vector (>=0.12 && <0.14) [details] |
| License | MIT |
| Copyright | 2020 Sam Balco, 2026 Adrian Sieber |
| Author | Sam Balco, Adrian Sieber |
| Maintainer | haskell@ad-si.com |
| Uploaded | by adrian at 2026-01-14T15:09:37Z |
| Category | JavaScript |
| Home page | https://github.com/ad-si/mquickjs-hs#readme |
| Bug tracker | https://github.com/ad-si/mquickjs-hs/issues |
| Source repo | head: git clone https://github.com/ad-si/mquickjs-hs |
| Distributions | |
| Downloads | 2 total (2 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs uploaded by user Build status unknown [no reports yet] |
Readme for mquickjs-hs-0.1.2.4
[back to package description]mquickjs-hs
This package provides a Haskell wrapper for the Micro QuickJS JavaScript Engine. It has been inspired by the quickjs-rs and ocaml-quickjs libraries.
Features
The functionality is quite basic and is currently limited to:
- Evaluating JS code
- Calling a JS function in the global scope
- Marshalling Aeson Values to and from JSValues.
Examples
Evaluate an expression:
import MQuickJS
one_plus_two = mquickjs $ do
res <- eval "1+2"
liftIO $ print res
Declare a function and call it on an argument:
call_f = mquickjs $ do
_ <- eval_ "function f(x) { return x + 1; }"
res <- eval "f(2)"
liftIO $ print res
Pass a Haskell value (which has a ToJSON instance) to the JS runtime:
aeson_marshall = mquickjs $ do
_ <- eval_ "function f(x) { return x + 1; }"
res <- withJSValue (3::Int) $ \x -> call "f" [x]
liftIO $ print res
Contributing
Please feel free to report bugs/submit feature requests via the github issue tracker and submit any pull requests to the git repository.