Hakyll with stack

I am trying to compile hakyll using stack. But it fails trying to build pandoc. Is this a known issue ? Any workarounds ?

What is the error? Is it Nix-specific or haskell one?

Stack does not reuse nixpkgs version of haskell packages and tries to
build its own, so it is very likely a Haskell error.

(FWIW, haskellPackages.pandoc builds fine on master.)