You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like to use "single cabal script" a lot for small examples, e.g.:
$ cat ~/Templates/cabalscript.hs:
#!/usr/bin/env cabal
{- cabal:build-depends: base-}
main =doputStrLn"Hello World!"
_ <-readLn::IOStringreturn()
If one could test this by typing "C-c C-l" that'd grand, since cabal pull in all the dependencies encoded in the special comments area. I suspect we need a new type for haskell-process-type?
Also any pointer to where to look at for start hacking on it?
Edit: I have found a workaround of using the filename itself as the cabal-repl target.
The text was updated successfully, but these errors were encountered:
#!/usr/bin/env cabal
{- cabal:
build-depends: base
default-language: GHC2021
-}
main = do
putStrLn "Hello World!"
_ <- readLn :: IO String
return ()
{-
Local Variables:
fill-column: 120
;; This will allow you to set the cabal-repl target to be this file directly.
haskell-process-type: cabal-repl
haskell-process-load-or-reload-prompt: t
End:
-}
With this, I would only need to do a couple of initial setup for the initial C-c C-l, and set the cabal repl target to the file name itself.
hellwolf
changed the title
Feature request: "cabal run" as a new haskell-process-type
Feature request: "cabal repl" with file target
Aug 27, 2023
I like to use "single cabal script" a lot for small examples, e.g.:
$ cat ~/Templates/cabalscript.hs
:If one could test this by typing "C-c C-l" that'd grand, since cabal pull in all the dependencies encoded in the special comments area.
I suspect we need a new type forhaskell-process-type
?Also any pointer to where to look at for start hacking on it?Edit: I have found a workaround of using the filename itself as the cabal-repl target.
The text was updated successfully, but these errors were encountered: