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>
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.