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
We define our entities in the data layer this way:
traitEntity[A] {
typeP[_]
}
We know that P[_] and A are related, since P is somehow hiding a value of type A. However this connection isn't reflected at all in the code. This notion seems like a functional dependency in Haskell, but we think that it should be enough if we define a MonadState[A, P] inside the trait. Consider this alternative and apply it, if useful.
The text was updated successfully, but these errors were encountered:
We define our entities in the data layer this way:
We know that
P[_]
andA
are related, sinceP
is somehow hiding a value of typeA
. However this connection isn't reflected at all in the code. This notion seems like a functional dependency in Haskell, but we think that it should be enough if we define aMonadState[A, P]
inside the trait. Consider this alternative and apply it, if useful.The text was updated successfully, but these errors were encountered: