Hi Haskell Discourse,
I learned Haskell this year, and am trying to use it in my business.
I’m using Shopify Functions, which allows me to add custom functionality to Shopify, as long as I produce a WebAssembly binary. So, I tried to build a Shopify Function in Haskell using its new WASM backend.
Turns out a “Hello, world!” app is 1.1M (928k after running wasm-opt).
This far exceeds Shopify’s limit of 256kb.
Anybody know how to reduce WebAssembly filesize? Is it okay to use the GHC -dynamic
flag when compiling to WASM, maybe?