miso
Copyright(C) 2016-2025 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <code@dmj.io>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.Run

Contents

Description

Support for running and live-reloading of miso applications.

Synopsis

Live reload

run Source #

Arguments

:: JSM ()

A JSM action typically created using miso or startApp

-> IO () 

Entry point for a miso application.

  • When compiling with GHC (native), this starts a web server for live reload, using jsaddle.
  • When compiling to WASM, this uses jsaddle-wasm.
  • When compiling to JS (GHCJS), this is simply id.