Using cabal repl does not seem to do anything when used in library projects, but works great for executable projects. Is this the expected behavior that I just don't understand?
If I have a file containing just
go = putStrLn "test"
and use cabal init with all the defaults (but select "library" as the type), then running cabal repl just creates some text about setting up and preprocessing the library and never enters the REPL environment. The exact same steps, but with the "executable" selected as type, put me directly in GHCi, as expected.
The code works fine when loading directly into GHCi.
haskell ghc ghci cabal cabal-install
Karl
source share