data Foo = Foo { _bar :: Map String Integer } deriving (Eq, Ord, Read, Show, Data, Typeable) $(deriveSafeCopy 0 'base 'Foo) $(makeLenses ''Foo)
Given the code above, I get the impression that this should be possible:
addEntry :: String -> Update Foo () addEntry s = zoom bar $ modify $ insert s 0
But the GHC will complain line by line:
src/Backend.hs:39:20: No instance for (Functor (Control.Lens.Internal.Zoom.Zoomed (Update Foo) ()))
Any ideas?
source share