Skip to content

`: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

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information