`:reload <Target>` can't find module `<Target>`
Summary
On GHC HEAD, fd998679, the GHCi command :reload <Target>
fails with the message:
ghci> :r Main
<no location info>: error: [GHC-82272]
module ‘Main’ cannot be found locally
This is a regression introduced by !14231 (merged)
Steps to reproduce
module Main where
main = putStrLn "Hello, World"
> ghci Main.hs
ghci> :r Main
Expected behavior
Should not crash and load module Main
.
Environment
- GHC version used: GHC HEAD, fd998679