Skip to content

Minimalistic and an easy to use template for a miso project configured to be able to be compiled with both ghc and ghcjs

Notifications You must be signed in to change notification settings

DoctorRyner/miso-template

Repository files navigation

miso-template

Build using GHC

Just run stack build

Build using GHCJS

  1. You must somehow install ghcjs (tested with ghcjs-8.6.0.1_ghc-8.6.2). I did it via nix
nix-channel --add https://nixos.org/channels/nixos-19.03 nixos
nix-channel --update
nix-env -f channel:nixos-19.03 -iA haskell.compiler.ghcjs
  1. Run stack build --stack-yaml "stack-ghcjs.yaml" and wait until it will be stucked while trying to download and build dependencies, you can see it if it stucks at 0 / ?? for a some time, then you need to interrupt it (just press cmd / ctrl + c). We need to do this only to generate necessary files because stack can't build using latest ghcjs

PS. Recently stack generates .cabal file and just stops so it's possible that you don't need to interrupt it yourself

  1. Run cabal new-build all --project=cabal-ghcjs.project to actually download dependencies and build it to html and js files

About

Minimalistic and an easy to use template for a miso project configured to be able to be compiled with both ghc and ghcjs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published