Skip to content

Stack GHCI Loads Only First Module #995

@ruggeri

Description

@ruggeri

When I run stack ghci, it claims to load multiple files:

~/Chess$ stack ghci
Configuring GHCi with the following packages: Chess
GHCi, version 7.10.2: http://www.haskell.org/ghc/  :? for help
[ 1 of 13] Compiling Utils            ( /Users/ruggeri/Chess/src/Utils.hs, interpreted )
[ 2 of 13] Compiling Pos              ( /Users/ruggeri/Chess/src/Pos.hs, interpreted )
[ 3 of 13] Compiling Move             ( /Users/ruggeri/Chess/src/Move.hs, interpreted )
[ 4 of 13] Compiling Color            ( /Users/ruggeri/Chess/src/Color.hs, interpreted )[ 5 of 13] Compiling Piece            ( /Users/ruggeri/Chess/src/Piece.hs, interpreted )
[ 6 of 13] Compiling Board            ( /Users/ruggeri/Chess/src/Board.hs, interpreted )
[ 7 of 13] Compiling PieceMovement    ( /Users/ruggeri/Chess/src/PieceMovement.hs, interpreted )
[ 8 of 13] Compiling Game             ( /Users/ruggeri/Chess/src/Game.hs, interpreted )
[ 9 of 13] Compiling GameIO           ( /Users/ruggeri/Chess/src/GameIO.hs, interpreted )
[10 of 13] Compiling Search           ( /Users/ruggeri/Chess/src/Search.hs, interpreted )
[11 of 13] Compiling TestBoards       ( /Users/ruggeri/Chess/src/TestBoards.hs, interpreted )
[12 of 13] Compiling Abc              ( /Users/ruggeri/Chess/src/Abc.hs, interpreted )[13 of 13] Compiling Lib              ( /Users/ruggeri/Chess/src/Lib.hs, interpreted )
Ok, modules loaded: Lib, Abc, Board, Color, Game, GameIO, Move, Piece, PieceMovement, Pos, Search, TestBoards, Utils.
*Abc>

But as you can see, only the module Abc is in fact loaded. It appears the alphabetically first module of my code ("src/Abc.hs") is the one chosen.

Is there a way to configure the cabl file such that all modules are loaded? Thanks!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions