Skip to content

Changes in hlint config file should be applied on the fly #594

Open
@jneira

Description

@jneira

(from twitter: https://twitter.com/korayal/status/1326963429257711623)

  • I describe that behaviour prematurely in docs but it does not work
  • We should change getHlintSettingsRule from defineNoFile to a definition that takes in account possible configuration files to rerun the rule

getHlintSettingsRule :: HlintUsage -> Rules ()
getHlintSettingsRule usage =
defineNoFile $ \GetHlintSettings ->
liftIO $ case usage of
HlintEnabled cmdArgs -> argsSettings cmdArgs
HlintDisabled -> fail "hlint configuration unspecified"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions