I want to build an executable with an icon. By googling it, I find the instruction here, but it only works by compiling a source file with ghc
.
If I want to build a project with an executable by cabal build
or stack build
, how should I configure the .cabal
or .yaml
files such that cabal build
or stack build
can directly create an executable with an icon?
I've googled it for a while, but nothing useful.
I appreciate it if any tips are given.