Stop command prompt from opening when running exe file built from haskell project
问题 I have created a small application that uses the gloss library for a GUI. When typing "cabal run [cabal file]" the project is built and run, and only prompts the GUI. When I instead go and click on the .exe file that was generated from the build, the GUI opens but so does the command prompt. I want to stop the command prompt from opening and only have the window from gloss open. 回答1: By default on Windows GHC builds console programs, which open a Command Prompt terminal if one isn’t open