Skip to content

Commit

Permalink
Merge pull request haskell#2388 from cocreature/fix#1986
Browse files Browse the repository at this point in the history
Open repl even if there are no exposed modules
  • Loading branch information
23Skidoo committed Jan 27, 2015
2 parents 18c17cb + ddbd26c commit b472558
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Cabal/Distribution/Simple/GHC.hs
Expand Up @@ -548,8 +548,10 @@ buildOrReplLib forRepl verbosity numJobs pkg_descr lbi lib clbi = do
-- TODO: problem here is we need the .c files built first, so we can load them
-- with ghci, but .c files can depend on .h files generated by ghc by ffi
-- exports.
unless (null (libModules lib)) $
ifReplLib (runGhcProg replOpts)

when (null (libModules lib)) $
info verbosity "No exposed modules"
ifReplLib (runGhcProg replOpts)

-- link:
unless forRepl $ do
Expand Down

0 comments on commit b472558

Please sign in to comment.