Skip to content

Turn role errors into warnings#1

Open
dominiquedevriese wants to merge 3 commits into
mrBliss:explicit-dicts-8.4from
dominiquedevriese:explicit-dicts-8.4
Open

Turn role errors into warnings#1
dominiquedevriese wants to merge 3 commits into
mrBliss:explicit-dicts-8.4from
dominiquedevriese:explicit-dicts-8.4

Conversation

@dominiquedevriese
Copy link
Copy Markdown

Thomas,

Deze PR in je GHC branch een wijziging gemaakt om van de role errors warnings te maken.
Er zijn namelijk nogal wat gevallen waar rollen slecht geïnfereerd worden, vaak omwille van het gebrek aan higher-order rollen.
Een student die zijn bachelorthesis bij mij maakt heeft dit nodig om bijvoorbeeld MonadWriter dictionaries te kunnen instantiëren.

groetjes
Dominique

experimentation in cases where inferred roles are wrong.
Also: add a -Wdictionary-application-roles flag that is by default on, which can
be turned off by -Wno-dictionary-application-roles.
It can also be turned into an error by -Werror=dictionary-application-roles
This is useful because current role inference in GHC is imperfect (no
higher-order roles).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant