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
Wingman test AutoThetaFix.hs replaces an instance method:
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE UndecidableInstances #-}
dataFixfa=Fix (f (Fixfa))
instance ( Functorf-- FIXME(sandy): Unfortunately, the recursion tactic fails to fire-- on this case. By explicitly adding the @Functor (Fix f)@-- dictionary, we can get Wingman to generate the right definition.
, Functor (Fixf)
) =>Functor (Fixf) wherefmap= _
but the result is:
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE UndecidableInstances #-}
dataFixfa=Fix (f (Fixfa))
instance (Functorf, Functor (Fixf)) =>Functor (Fixf) wherefmap fab (Fix fffa) =Fix (fmap (fmap fab) fffa)
Maybe what I really want here is a graftHsMatch, rather than the whole decl.
The text was updated successfully, but these errors were encountered:
Wingman test
AutoThetaFix.hs
replaces an instance method:but the result is:
Maybe what I really want here is a graftHsMatch, rather than the whole decl.
The text was updated successfully, but these errors were encountered: