Skip to content

Conversation

@luigy
Copy link
Contributor

@luigy luigy commented Mar 8, 2016

  • :add main-file on a separate line in order to load as much as possible in case of error

does not solve the root problem, but improves the end ghci state of #1606

  • Current
Specify main module to use (press enter to load none): 1
Loading main module from cadidate 1, --main-is /Users/luigy/code/haskell/ghcid/src/Ghcid.hs

Configuring GHCi with the following packages: ghcid
GHCi, version 7.10.3: http://www.haskell.org/ghc/  :? for help
[1 of 8] Compiling Language.Haskell.Ghcid.Util ( /Users/luigy/code/haskell/ghcid/src/Language/Haskell/Ghcid/Util.hs, interpreted )
[2 of 8] Compiling Wait             ( /Users/luigy/code/haskell/ghcid/src/Wait.hs, interpreted )
[3 of 8] Compiling Language.Haskell.Ghcid.Terminal ( /Users/luigy/code/haskell/ghcid/src/Language/Haskell/Ghcid/Terminal.hs, interpreted )
[4 of 8] Compiling Language.Haskell.Ghcid.Types ( /Users/luigy/code/haskell/ghcid/src/Language/Haskell/Ghcid/Types.hs, interpreted )
[5 of 8] Compiling Language.Haskell.Ghcid.Parser ( /Users/luigy/code/haskell/ghcid/src/Language/Haskell/Ghcid/Parser.hs, interpreted )
[6 of 8] Compiling Paths_ghcid      ( /Users/luigy/code/haskell/ghcid/.stack-work/dist/x86_64-osx/Cabal-1.22.7.0/build/autogen/Paths_ghcid.hs, interpreted )
[7 of 8] Compiling Language.Haskell.Ghcid ( /Users/luigy/code/haskell/ghcid/src/Language/Haskell/Ghcid.hs, interpreted )
[8 of 8] Compiling Ghcid            ( src/Ghcid.hs, interpreted )
Ok, modules loaded: Language.Haskell.Ghcid, Paths_ghcid, Language.Haskell.Ghcid.Types, Language.Haskell.Ghcid.Parser, Language.Haskell.Ghcid.Terminal, Language.Haskell.Ghcid.Util, Ghcid, Wait.

<no location info>:
    module ‘main@main:Ghcid’ is defined in multiple files: /Users/luigy/code/haskell/ghcid/src/Ghcid.hs
                                                           /Users/luigy/code/haskell/ghcid/src/Ghcid.hs
Failed, modules loaded: none.

<no location info>:
    Could not find module ‘Ghcid’
    It is not a module in the current program, or in any known package.
Prelude>
  • This PR
Configuring GHCi with the following packages: ghcid
GHCi, version 7.10.3: http://www.haskell.org/ghc/  :? for help
[1 of 8] Compiling Language.Haskell.Ghcid.Util ( /Users/luigy/code/haskell/ghcid/src/Language/Haskell/Ghcid/Util.hs, interpreted )
[2 of 8] Compiling Wait             ( /Users/luigy/code/haskell/ghcid/src/Wait.hs, interpreted )
[3 of 8] Compiling Language.Haskell.Ghcid.Terminal ( /Users/luigy/code/haskell/ghcid/src/Language/Haskell/Ghcid/Terminal.hs, interpreted )
[4 of 8] Compiling Language.Haskell.Ghcid.Types ( /Users/luigy/code/haskell/ghcid/src/Language/Haskell/Ghcid/Types.hs, interpreted )
[5 of 8] Compiling Language.Haskell.Ghcid.Parser ( /Users/luigy/code/haskell/ghcid/src/Language/Haskell/Ghcid/Parser.hs, interpreted )
[6 of 8] Compiling Paths_ghcid      ( /Users/luigy/code/haskell/ghcid/.stack-work/dist/x86_64-osx/Cabal-1.22.7.0/build/autogen/Paths_ghcid.hs, interpreted )
[7 of 8] Compiling Language.Haskell.Ghcid ( /Users/luigy/code/haskell/ghcid/src/Language/Haskell/Ghcid.hs, interpreted )
[8 of 8] Compiling Ghcid            ( src/Ghcid.hs, interpreted )
Ok, modules loaded: Language.Haskell.Ghcid, Paths_ghcid, Language.Haskell.Ghcid.Types, Language.Haskell.Ghcid.Parser, Language.Haskell.Ghcid.Terminal, Language.Haskell.Ghcid.Util, Ghcid, Wait.
[ 1 of 12] Compiling Language.Haskell.Ghcid.Util ( /Users/luigy/code/haskell/ghcid/src/Language/Haskell/Ghcid/Util.hs, interpreted )
[ 2 of 12] Compiling Wait             ( /Users/luigy/code/haskell/ghcid/src/Wait.hs, interpreted )
[ 3 of 12] Compiling Test.Util        ( /Users/luigy/code/haskell/ghcid/src/Test/Util.hs, interpreted )
[ 4 of 12] Compiling Language.Haskell.Ghcid.Terminal ( /Users/luigy/code/haskell/ghcid/src/Language/Haskell/Ghcid/Terminal.hs, interpreted )
[ 5 of 12] Compiling Language.Haskell.Ghcid.Types ( /Users/luigy/code/haskell/ghcid/src/Language/Haskell/Ghcid/Types.hs, interpreted )
[ 6 of 12] Compiling Language.Haskell.Ghcid.Parser ( /Users/luigy/code/haskell/ghcid/src/Language/Haskell/Ghcid/Parser.hs, interpreted )
[ 7 of 12] Compiling Test.Parser      ( /Users/luigy/code/haskell/ghcid/src/Test/Parser.hs, interpreted )
[ 8 of 12] Compiling Paths_ghcid      ( /Users/luigy/code/haskell/ghcid/.stack-work/dist/x86_64-osx/Cabal-1.22.7.0/build/autogen/Paths_ghcid.hs, interpreted )
[ 9 of 12] Compiling Language.Haskell.Ghcid ( /Users/luigy/code/haskell/ghcid/src/Language/Haskell/Ghcid.hs, interpreted )
[10 of 12] Compiling Ghcid            ( /Users/luigy/code/haskell/ghcid/src/Ghcid.hs, interpreted )
[11 of 12] Compiling Test.Polling     ( /Users/luigy/code/haskell/ghcid/src/Test/Polling.hs, interpreted )
[12 of 12] Compiling Test.HighLevel   ( /Users/luigy/code/haskell/ghcid/src/Test/HighLevel.hs, interpreted )
Ok, modules loaded: Language.Haskell.Ghcid, Paths_ghcid, Language.Haskell.Ghcid.Types, Language.Haskell.Ghcid.Parser, Language.Haskell.Ghcid.Terminal, Language.Haskell.Ghcid.Util, Ghcid, Wait, Test.HighLevel, Test.Parser, Test.Polling, Test.Util.

<no location info>:
    module ‘main@main:Ghcid’ is defined in multiple files: /Users/luigy/code/haskell/ghcid/src/Ghcid.hs
                                                           /Users/luigy/code/haskell/ghcid/src/Ghcid.hs
Failed, modules loaded: Language.Haskell.Ghcid, Paths_ghcid, Language.Haskell.Ghcid.Types, Language.Haskell.Ghcid.Parser, Language.Haskell.Ghcid.Terminal, Language.Haskell.Ghcid.Util, Ghcid, Wait, Test.HighLevel, Test.Parser, Test.Polling, Test.Util.
*Ghcid Ghcid Language.Haskell.Ghcid Language.Haskell.Ghcid.Parser Language.Haskell.Ghcid.Terminal Language.Haskell.Ghcid.Types Language.Haskell.Ghcid.Util Test.HighLevel Test.Parser Test.Polling Test.Util Wait>

@mgsloan
Copy link
Contributor

mgsloan commented Mar 9, 2016

Thank! It'd also be good to consider #1888

mgsloan added a commit that referenced this pull request Mar 9, 2016
…-on-duplicate

better ghci result after :load collisions with Main module
@mgsloan mgsloan merged commit 75c1587 into commercialhaskell:master Mar 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants