• Alex D's avatar
    Force module recompilation if '*' prefix was used to load modules in ghci (#8042) · 74fea5c7
    Alex D authored and Alex D's avatar Alex D committed
    Usually pre-compiled code is preferred to be loaded in ghci if available, which means
    that if we try to load module with '*' prefix and compilation artifacts are available
    on disc (.o and .hi files) or the source code was untouched, the driver would think
    no recompilation is required. Therefore, we need to force recompilation so that desired
    byte-code is generated and loaded. Forcing in this case should be ok, since this is what
    happens for interpreted code anyways when reloading modules.