/yesod-fast-devel

Fast live-reloading for yesod applications.

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

yesod-fast-devel


Fast live-reloading for yesod applications.

Forked from fast-yesod-devel

Install

$ git clone git@github.com:haskellbr/yesod-fast-devel
$ stack install

Usage

  • Have browser-sync installed (npm install -g browser-sync)
  • Have foreign-store on the cabal file (maybe cabal-add foreign-store)
  • Patch your "develmain" to write the current time to a devel-main-since file on reload
    • We do this for you through yesod-fast-devel init
$ yesod-fast-devel

Example using Spock

The git-issues project shows how you can use this with Spock applications.

License

This code is published under the BSD-3 license.