Skip to content

An example of modern frontend development with haskell using EDSL.

License

Notifications You must be signed in to change notification settings

opyapeus/frontend-haskell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

frontend-haskell

An example of modern frontend development with haskell using EDSL.

demo

Feature

  • Use Lucid, Clay, Sunroof (※temp) for EDSL
  • Unified management of Ids and Classes by union type
  • Fast auto rebuild with ghcid
  • Browser auto reload with browser-sync

ghcid (fast and auto relaod)

once

stack install ghcid

execute

ghcid --command "stack ghci" --test "DevelMain.update"

access: http://localhost:3000

ghci (fast but manual relaod)

run ghci

stack ghci

load once

:l app/DevelMain.hs
  1. restart app

    DevelMain.update
  2. reload

    :r
  3. back to 1.

down app

DevelMain.shutdown

access: http://localhost:3000

yesod devel (slow)

once

stack build yesod-bin

execute

stack exec -- yesod devel --extra-stack-arg --pedantic

※ pedantic option to detect warning.

access: http://localhost:3000

browser-sync

once

npm install browser-sync -g

for ghcid

browser-sync start --files src/ --proxy 'localhost:3000'

※ it will be better to watch some build file.

access: http://localhost:3001

for yesod devel

browser-sync start --files yesod-devel/rebuild --proxy 'localhost:3000'

access: http://localhost:3001

About

An example of modern frontend development with haskell using EDSL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published