Skip to content
This repository was archived by the owner on Mar 26, 2023. It is now read-only.
This repository was archived by the owner on Mar 26, 2023. It is now read-only.

Support tag generation for stack scripts #58

@harendra-kumar

Description

@harendra-kumar

Stack can be used as a script interpreter. We can specify packages being used by a script. For example:

#!/usr/bin/env stack
{- stack runghc
    --package getopt-generics
    --package path
    --package path-io
-}

It will be nice is codex can support tag generation for the scripts as well by using the packages specified in the stack interpreter comment. It will make writing and navigating scripts a better experience. We will be able to navigate to any library functions being used in the script.

The parser for this comment line can be found here: https://github.com/commercialhaskell/stack/blob/master/src/Data/Attoparsec/Interpreter.hs

Instead of codex parsing it though, maybe stack can provide a command to parse and print the command line or packages being used when it executes the script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions