Sat Dec 2 20:37:34 EST 2017

Cross compiling haskell

I'd like to create a "service node" for offloading tasks from an
Erlang system.  This needs only a single static binary.

What I want is something that can handle different Erlang RPC calls in
parallel.  It doesn't really have to be a node which needs some extra
protocol overhead.  A port process is already good enough.

Start here:

From here:
"GHC doesn't cross-compile user programs"

But it is possible to cross-compile GCC and compile it on the target.

This mentiones a frankenstein's cross-compiler:

So it's not without caveats.
Maybe simpler to set up a qemu lxc.

More recent docs: