···647647 rm /nix/var/nix/manifests/*
648648 rm /nix/var/nix/channel-cache/*
649649650650+### How to use the Haste Haskell-to-Javascript transpiler
651651+652652+Open a shell with `haste-compiler` and `haste-cabal-install` (you don't actually need
653653+`node`, but it can be useful to test stuff):
654654+655655+ $ nix-shell -p "haskellPackages.ghcWithPackages (self: with self; [haste-cabal-install haste-compiler])" -p nodejs
656656+657657+You may not need the following step but if `haste-boot` fails to compile all the
658658+packages it needs, this might do the trick
659659+660660+ $ haste-cabal update
661661+662662+`haste-boot` builds a set of core libraries so that they can be used from Javascript
663663+transpiled programs:
664664+665665+ $ haste-boot
666666+667667+Transpile and run a "Hello world" program:
668668+669669+ $ echo 'module Main where main = putStrLn "Hello world"' > hello-world.hs
670670+ $ hastec --onexec hello-world.hs
671671+ $ node hello-world.js
672672+ Hello world
673673+650674### Builds on Darwin fail with `math.h` not found
651675652676Users of GHC on Darwin have occasionally reported that builds fail, because the