Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
phoityne opened this issue Jun 18, 2021 · 0 comments
Open

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

phoityne opened this issue Jun 18, 2021 · 0 comments

Comments

@phoityne
Copy link
Owner

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> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant