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
Currently, the Adaptor instance for lists if inefficient and the instance for sized lists ListR is similarly costly, though in a different way, but that doesn't mean we can't generalize from lists to Traversable at least.
The old description below this line is completely outdated.
This would need to be changed a lot, because for definition
instance (AdaptableDomainsa, Traversablet)
=>AdaptableDomains (ta) wheretypeScalar (ta) =Scalara
toDomains l = unefined -- use unzip x = (fmap fst x, fmap snd x), etc.
fromDomains lInit source =let f = swap .flip fromDomains
in swap $ mapAccumL f source lInit
I'm getting errors like
src/HordeAd/External/Adaptor.hs:237:8: error:
Conflicting family instance declarations:
Scalar (t a) = Scalar a
-- Defined at src/HordeAd/External/Adaptor.hs:237:8
Scalar (a, b, c) = Scalar a
-- Defined at src/HordeAd/External/Adaptor.hs:271:8
|
237 | type Scalar (t a) = Scalar a
| ^^^^^^
src/HordeAd/External/Adaptor.hs:245:8: error:
Conflicting family instance declarations:
Value (t a) = t (Value a)
-- Defined at src/HordeAd/External/Adaptor.hs:245:8
Value (a, b) = (Value a, Value b)
-- Defined at src/HordeAd/External/Adaptor.hs:312:8
|
245 | type Value (t a) = t (Value a)
| ^^^^^
The text was updated successfully, but these errors were encountered:
Currently, the
Adaptor
instance for lists if inefficient and the instance for sized listsListR
is similarly costly, though in a different way, but that doesn't mean we can't generalize from lists toTraversable
at least.The old description below this line is completely outdated.
This would need to be changed a lot, because for definition
I'm getting errors like
The text was updated successfully, but these errors were encountered: