Skip to content

Feature request: "cabal repl" with file target #1812

Open
@hellwolf

Description

@hellwolf

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 = do
  putStrLn "Hello World!"
  _ <- readLn :: IO String
  return ()

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions