feat(xan): Use Witherable in the prelude
Install the witherable library, expose it in the prelude, and update all call sites that are broken by that change. This is a really nice library, and basically the ideal abstraction layer for what it does. Change-Id: I640e099318c1ecce0ad483bc336c379698bdab88 Reviewed-on: https://cl.tvl.fyi/c/depot/+/725 Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
parent
20bc4aa10d
commit
6c7e14d2dc
7 changed files with 30 additions and 6 deletions
|
|
@ -387,8 +387,11 @@ data Neighbors a = Neighbors
|
|||
, _bottomRight :: a
|
||||
}
|
||||
deriving stock (Show, Eq, Ord, Functor, Foldable, Traversable, Generic)
|
||||
deriving anyclass (NFData, CoArbitrary, Function)
|
||||
deriving anyclass (NFData, CoArbitrary, Function, MonoFoldable)
|
||||
deriving Arbitrary via GenericArbitrary (Neighbors a)
|
||||
|
||||
type instance Element (Neighbors a) = a
|
||||
|
||||
makeFieldsNoPrefix ''Neighbors
|
||||
|
||||
instance Applicative Neighbors where
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue