Does your distro not statically link Haskell libraries the way it’s meant to? Installing pandoc only requires libgmp.