-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
instance Default WidgetFileSettings vanished #1850
Comments
The file where this instance is defined hasn't changed in the best part of eight years. I don't see any changes to Yesod that would have caused this in the past half year either. Could the change be somewhere else, like in hledger? |
On Thu, 24 Oct 2024, Jezen Thomas wrote:
The file where this instance is defined hasn't changed in the best part
of eight years. I don't see any changes to Yesod that would have caused
this in the past half year either. Could the change be somewhere else,
like in hledger?
I assumed it could be caused by Cabal choosing two different versions of
the same yesod package at different places. But Cabal has not shown a
warning about such a conflict. Hm.
|
Could it perhaps be related to this? |
On Thu, 24 Oct 2024, Jezen Thomas wrote:
Could it perhaps be related to this?
#1848 (comment)
That one looks different.
I assumed my problem could have to do with an orphan instance, but
"instance Default WidgetFileSettings" is defined right after
"WidgetFileSettings" in Yesod.Default.Util.
|
On Thu, 24 Oct 2024, thielema wrote:
I assumed my problem could have to do with an orphan instance, but
"instance Default WidgetFileSettings" is defined right after
"WidgetFileSettings" in Yesod.Default.Util.
I think I found the problem. yesod imports package data-default-class and
defines instance Data.Default.Class.Default WidgetFileSettings, whereas
hledger expects instance Data.Default.Default WidgetFileSettings from
package data-default. Formerly, data-default just re-exported Default
class from data-default-class, but in data-default-0.8.0.0 there seems to
be a custom definition. data-default-0.8.0.0 was released yesterday.
I do not know whether this means that data-default-class becomes
deprecated or what the relation between data-default and
data-default-class is intended to be.
|
The author of |
Thank you for investigating. It seems (and correct me if I'm wrong) that there's nothing really to do here though, so I will close this issue. |
On Sat, 26 Oct 2024, Jezen Thomas wrote:
Thank you for investigating. It seems (and correct me if I'm wrong) that
there's nothing really to do here though, so I will close this issue.
I think you can replace data-default-class by data-default to become
future-proof.
|
After a
cabal update
I get the following type error when compilinghledger-web
:Did something change in one of the
yesod
packages?The text was updated successfully, but these errors were encountered: