GHC issueshttps://gitlab.haskell.org/ghc/ghc/-/issues2019-07-07T18:16:03Zhttps://gitlab.haskell.org/ghc/ghc/-/issues/14676GHCI doesn't recover from bad :add2019-07-07T18:16:03ZJuzleyGHCI doesn't recover from bad :addIn GHCi, when the user attempts to add a module that can not be found, the error message for that module will be repeated for any subsequent :add calls.
```
ghci> :add Slightly/Misspelled/File.hs
<no location info>: error:
can't find fi...In GHCi, when the user attempts to add a module that can not be found, the error message for that module will be repeated for any subsequent :add calls.
```
ghci> :add Slightly/Misspelled/File.hs
<no location info>: error:
can't find file: Slightly/Misspelled/File.hs
...
ghci> :add Correctly/Spelled/File.hs
<no location info>: error:
can't find file: Slightly/Misspelled/File.hs
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 8.2.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"GHCI doesn't recover from bad :add","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"8.2.2","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"In GHCi, when the user attempts to add a module that can not be found, the error message for that module will be repeated for any subsequent :add calls.\r\n\r\n{{{\r\nghci> :add Slightly/Misspelled/File.hs\r\n<no location info>: error:\r\ncan't find file: Slightly/Misspelled/File.hs\r\n\r\n...\r\nghci> :add Correctly/Spelled/File.hs\r\n<no location info>: error:\r\ncan't find file: Slightly/Misspelled/File.hs\r\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->8.6.1JuzleyJuzley