module Unison.Merge.HumanDiffOp
( HumanDiffOp (..),
)
where
import Data.Set.NonEmpty (NESet)
import Unison.Merge.Updated (Updated)
import Unison.Name (Name)
data HumanDiffOp ref
= HumanDiffOp'Add !ref
| HumanDiffOp'Delete !ref
| HumanDiffOp'Update !(Updated ref)
| HumanDiffOp'PropagatedUpdate !(Updated ref)
| HumanDiffOp'AliasOf !ref !(NESet Name )
|
HumanDiffOp'RenamedFrom !ref !(NESet Name)
|
HumanDiffOp'RenamedTo !ref !(NESet Name)
deriving stock (Int -> HumanDiffOp ref -> ShowS
[HumanDiffOp ref] -> ShowS
HumanDiffOp ref -> String
(Int -> HumanDiffOp ref -> ShowS)
-> (HumanDiffOp ref -> String)
-> ([HumanDiffOp ref] -> ShowS)
-> Show (HumanDiffOp ref)
forall ref. Show ref => Int -> HumanDiffOp ref -> ShowS
forall ref. Show ref => [HumanDiffOp ref] -> ShowS
forall ref. Show ref => HumanDiffOp ref -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: forall ref. Show ref => Int -> HumanDiffOp ref -> ShowS
showsPrec :: Int -> HumanDiffOp ref -> ShowS
$cshow :: forall ref. Show ref => HumanDiffOp ref -> String
show :: HumanDiffOp ref -> String
$cshowList :: forall ref. Show ref => [HumanDiffOp ref] -> ShowS
showList :: [HumanDiffOp ref] -> ShowS
Show)