module Data.JSON.Patch.Prelude ( module X , note ) where import Prelude as X import Control.Applicative as X (asum, (<|>)) import Control.Exception as X (Exception (..)) import Control.Monad as X (foldM, guard, unless, void, when) import Data.Bifunctor as X (bimap, first, second) import Data.List.NonEmpty as X (NonEmpty, nonEmpty) import Data.Maybe as X (fromMaybe) import Data.Text as X (Text, pack, unpack) import Data.Vector as X (Vector) import GHC.Generics as X (Generic) note :: e -> Maybe a -> Either e a note :: forall e a. e -> Maybe a -> Either e a note e e = Either e a -> (a -> Either e a) -> Maybe a -> Either e a forall b a. b -> (a -> b) -> Maybe a -> b maybe (e -> Either e a forall a b. a -> Either a b Left e e) a -> Either e a forall a b. b -> Either a b Right