···647 rm /nix/var/nix/manifests/*
648 rm /nix/var/nix/channel-cache/*
649000000000000000000000000650### Builds on Darwin fail with `math.h` not found
651652Users of GHC on Darwin have occasionally reported that builds fail, because the
···647 rm /nix/var/nix/manifests/*
648 rm /nix/var/nix/channel-cache/*
649650+### How to use the Haste Haskell-to-Javascript transpiler
651+652+Open a shell with `haste-compiler` and `haste-cabal-install` (you don't actually need
653+`node`, but it can be useful to test stuff):
654+655+ $ nix-shell -p "haskellPackages.ghcWithPackages (self: with self; [haste-cabal-install haste-compiler])" -p nodejs
656+657+You may not need the following step but if `haste-boot` fails to compile all the
658+packages it needs, this might do the trick
659+660+ $ haste-cabal update
661+662+`haste-boot` builds a set of core libraries so that they can be used from Javascript
663+transpiled programs:
664+665+ $ haste-boot
666+667+Transpile and run a "Hello world" program:
668+669+ $ echo 'module Main where main = putStrLn "Hello world"' > hello-world.hs
670+ $ hastec --onexec hello-world.hs
671+ $ node hello-world.js
672+ Hello world
673+674### Builds on Darwin fail with `math.h` not found
675676Users of GHC on Darwin have occasionally reported that builds fail, because the