Cross compile GHC project using aarch64-linux-gnu-ghc

GHC cross-compilers do not support TH (nor annotations) out-of-the-box. You need to build an external interpreter program (called iserv) for the target, to run it into qemu or on a real aarch64 playform, to setup an iserv-proxy for ghc to communicate with it… haskell.nix does this automatically afaik, so it may be easier to use it.

1 Like