Skip to content

readFileQ and tracking dependencies #293

@L0neGamer

Description

@L0neGamer

In #230 some file tracking was implemented, but @ snoyberg comments that for the hot reload we want to not track dependencies.

In my codebase's workflow, we use ghci to build and run the site for devs. We use hot reload because that makes it convenient to change small things on the fly. However, because this dependency is not in place, if you update the hamlet/other file to use a new variable, it won't pick it up unless you force a clean-ish recompilation, because the hamlet file is not a dependency.

I don't know what the solution here is, but it is frustrating to have to clear my build cache to prod ghci to rebuild with a new hamlet interpolation. Maybe we can have ghci and ghcid style reload options, with the existing solution being the default?

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