It seems that there is currently no way to create a non-interactive launch configuration through a graphical interface. However, you can do this by manually editing the configuration files. The following instructions work with Eclipse 3.5.2, EclipseFP 2.0.2:
- Verify that the GHCI configuration exists.
- Close Eclipse.
- Go to the directory .metadata / .plugins / org.eclipse.debug.core / starts in the root of your workspace.
- There should be a file named "Main (project src) .launch". Copy it under any name, for example "Run Main.launch"
- Open the copied file in a text editor and replace the
--interactive option with -e main . - Save the file and run eclipse. You should see the new Run Main launch configuration. When you run it, EclipseFP executes the Main.hs file, redirecting both input and output to the console view.
Also, it looks like you haven't configured cabal yet. You must install it first (from your distribution repositories or here if you use Windows). Then go to the Scion and Cabal settings and point them to your cabal executable. After you click OK, compilation of Scion will begin. If it gives you errors, read which packages are missing and install them through cabal install pkg-name . (I had to set the happy --global flag, and for QuickCheck I had to manually install version 2. *). To recompile Scion, restart Eclipse.
source share