You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the problem here seems to be that Agda itself eta-contracts MakeHask (hashBytes x) to x, even when the parameters of the constructor and the projection are different, possibly caused by agda/agda#2732. I'm not sure if there is much we can do to fix this on the agda2hs side. As a workaround, you could add a no-eta-equality clause to the record definition, which should be enough to stop Agda from eta-contracting.
Agda
becomes Haskell
even though
MakeHash . hashBytes != id
since in this case we hadMakeHash :: ByteString -> Maybe a
buthashBytes :: () -> ByteString
etc.The text was updated successfully, but these errors were encountered: