Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 660 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 660 Bytes

Haskell + Node.js Minimal Sample

Demonstrates a minimal Haskell code to produce a working (JavaScript only) nodejs application, also shows how to depend on other nodejs modules.

We are basically writing an equivalent to this JavaScript code:

const os = require("os");
console.log(os.hostname());

To build

  • First install ghcjs according to GHCJS doc.
  • Clone this project.
  • run ghcjs -o test src/Main.hs

To run

Resources