phoityne / haskell-debug-adapter

Debug Adapter for Haskell debugging system.
https://hackage.haskell.org/package/haskell-debug-adapter
BSD 3-Clause "New" or "Revised" License
54 stars 8 forks source link

[ghc901] can not set break-on-error. #22

Open phoityne opened 3 years ago

phoityne commented 3 years ago

On ghci-901, can not find main function after ":set -fbreak-on-error" command. have to change setting timing to ghci command line option. and disable exception break point request.

ghci> :load /home/phoityne/work/sample/Main.hs
[1 of 2] Compiling MyLib            ( /home/phoityne/work/sample/MyLib.hs, interpreted )
[2 of 2] Compiling Main             ( /home/phoityne/work/sample/Main.hs, interpreted )
Ok, two modules loaded.
ghci>
ghci> main
Hello, Haskell!
someFunc
ghci> 
ghci> :set -fbreak-on-error
Loaded package environment from /home/phoityne/work/sample/dist-newstyle/tmp/environment.-7625/.ghc.environment.x86_64-linux-9.0.1
Loaded package environment from /home/phoityne/work/sample/dist-newstyle/tmp/environment.-7625/.ghc.environment.x86_64-linux-9.0.1
package flags have changed, resetting and loading new packages...
ghci> 
ghci> main

<interactive>:18:1: error:
    • Variable not in scope: main
    • Perhaps you meant ‘min’ (imported from Prelude)
ghci>