module Unison.Merge.Updated
  ( Updated (..),
  )
where

import Unison.Prelude

-- | An updated thing.
data Updated a = Updated
  { forall a. Updated a -> a
old :: a,
    forall a. Updated a -> a
new :: a
  }
  deriving stock ((forall a b. (a -> b) -> Updated a -> Updated b)
-> (forall a b. a -> Updated b -> Updated a) -> Functor Updated
forall a b. a -> Updated b -> Updated a
forall a b. (a -> b) -> Updated a -> Updated b
forall (f :: * -> *).
(forall a b. (a -> b) -> f a -> f b)
-> (forall a b. a -> f b -> f a) -> Functor f
$cfmap :: forall a b. (a -> b) -> Updated a -> Updated b
fmap :: forall a b. (a -> b) -> Updated a -> Updated b
$c<$ :: forall a b. a -> Updated b -> Updated a
<$ :: forall a b. a -> Updated b -> Updated a
Functor, (forall x. Updated a -> Rep (Updated a) x)
-> (forall x. Rep (Updated a) x -> Updated a)
-> Generic (Updated a)
forall x. Rep (Updated a) x -> Updated a
forall x. Updated a -> Rep (Updated a) x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
forall a x. Rep (Updated a) x -> Updated a
forall a x. Updated a -> Rep (Updated a) x
$cfrom :: forall a x. Updated a -> Rep (Updated a) x
from :: forall x. Updated a -> Rep (Updated a) x
$cto :: forall a x. Rep (Updated a) x -> Updated a
to :: forall x. Rep (Updated a) x -> Updated a
Generic, Int -> Updated a -> ShowS
[Updated a] -> ShowS
Updated a -> String
(Int -> Updated a -> ShowS)
-> (Updated a -> String)
-> ([Updated a] -> ShowS)
-> Show (Updated a)
forall a. Show a => Int -> Updated a -> ShowS
forall a. Show a => [Updated a] -> ShowS
forall a. Show a => Updated a -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: forall a. Show a => Int -> Updated a -> ShowS
showsPrec :: Int -> Updated a -> ShowS
$cshow :: forall a. Show a => Updated a -> String
show :: Updated a -> String
$cshowList :: forall a. Show a => [Updated a] -> ShowS
showList :: [Updated a] -> ShowS
Show)