Checking the changes necessary to compile pandoc on wasm, it seems that the main changes are related to networking: haskell-wasm@336228b
I'd like to make it easier to compile pandoc to wasm, and to ultimately make wasm support part of the main branch. From what I understand, having a cabal flag network would be a step in that direction.