Skip to content

Why does SHM think I'm using stack? #125

@ivan-m

Description

@ivan-m

So SHM suddenly decides that things like shm-supported-languages is not going to work because it thinks I'm using stack for a project when there isn't even a stack.yaml file in this project.

It seems that the reason being is that shm-stack-find-file is finding my ~/.stylish-haskell.yaml for some strange reason and thinking that because of that I have a stack.yaml file and thus want to use stack.

(Not to mention the seemingly redundant double-usage of not: https://github.com/chrisdone/structured-haskell-mode/blob/master/elisp/shm-stack.el#L27 )

Maybe something like what haskell-mode has could be used:

(and (locate-dominating-file default-directory "stack.yaml")
             (executable-find "stack"))

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