Skip to content

specify alternate configuration file #396

@teto

Description

@teto

I would like to embed the configuration file with ormolu so that the same config can be used in various projects.

we provide fourmolu via nix and one of the common ways to do this in nix is to wrap the executable so:
1/ Ideally I would create a fourmolu-new wrapper that calls fourmolu --config /nix/store/....-config
2/ One solution is to create a wrapper fourmolu-new that calls fourmolu with options passed on the command line. But I prefer to edit the file with comments rather than the command line
3/ My other idea since fourmolu looks for a config in XDG_CONFIG_HOME is to change the value of this variable to a folder in the nix store with the config. It's convoluted.

Is such a command line option desirable ? what do you suggest ?

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