haskell-mode icon indicating copy to clipboard operation
haskell-mode copied to clipboard

C-c C-c `haskell-process-cabal-build` won't work if haven't ran C-c C-l

Open clatisus opened this issue 2 years ago • 1 comments

Hi, I've come across a issue where haskell-process-cabal-build won't work, it shows

No cabal.project file or cabal file matching the default glob './*.cabal' was found.
Please create a package description file <pkgname>.cabal or a cabal.project file referencing the packages you want to build.

You can reproduce in a bare minimum cabal project by cabal init. The project only contains a Main.hs.

.
├── CHANGELOG.md
├── test-project.cabal
└── app
    └── Main.hs

But if I run C-c C-l haskell-process-load-file first (which start a haskell session), then I ran C-c C-c, it suddenly works, without any errors.

clatisus avatar Dec 01 '22 12:12 clatisus