_ <- lockItem(4) } yield (a) Has the following error: found : IndexedStateT[Task,cmd5.LockedState,LockedState, Item] (which expands to) IndexedStateT[Task, cmd5.LockedState,LockedState,String] required: IndexedStateT[Task,cmd4.CachedState,?,?] _ <- updateItemName(4, “asdf") We need a regular CachedState, not a Locked State!
View Item doesn’t return a LockedItem