module Proteome.Data.PersistBuffers where

import Path (Abs, File, Path)

data PersistBuffers =
  PersistBuffers {
    PersistBuffers -> Maybe (Path Abs File)
current :: Maybe (Path Abs File),
    PersistBuffers -> [Path Abs File]
buffers :: [Path Abs File]
  }
  deriving stock (PersistBuffers -> PersistBuffers -> Bool
(PersistBuffers -> PersistBuffers -> Bool)
-> (PersistBuffers -> PersistBuffers -> Bool) -> Eq PersistBuffers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PersistBuffers -> PersistBuffers -> Bool
$c/= :: PersistBuffers -> PersistBuffers -> Bool
== :: PersistBuffers -> PersistBuffers -> Bool
$c== :: PersistBuffers -> PersistBuffers -> Bool
Eq, (forall x. PersistBuffers -> Rep PersistBuffers x)
-> (forall x. Rep PersistBuffers x -> PersistBuffers)
-> Generic PersistBuffers
forall x. Rep PersistBuffers x -> PersistBuffers
forall x. PersistBuffers -> Rep PersistBuffers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PersistBuffers x -> PersistBuffers
$cfrom :: forall x. PersistBuffers -> Rep PersistBuffers x
Generic, Int -> PersistBuffers -> ShowS
[PersistBuffers] -> ShowS
PersistBuffers -> String
(Int -> PersistBuffers -> ShowS)
-> (PersistBuffers -> String)
-> ([PersistBuffers] -> ShowS)
-> Show PersistBuffers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PersistBuffers] -> ShowS
$cshowList :: [PersistBuffers] -> ShowS
show :: PersistBuffers -> String
$cshow :: PersistBuffers -> String
showsPrec :: Int -> PersistBuffers -> ShowS
$cshowsPrec :: Int -> PersistBuffers -> ShowS
Show)
  deriving anyclass (Value -> Parser [PersistBuffers]
Value -> Parser PersistBuffers
(Value -> Parser PersistBuffers)
-> (Value -> Parser [PersistBuffers]) -> FromJSON PersistBuffers
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [PersistBuffers]
$cparseJSONList :: Value -> Parser [PersistBuffers]
parseJSON :: Value -> Parser PersistBuffers
$cparseJSON :: Value -> Parser PersistBuffers
FromJSON, [PersistBuffers] -> Encoding
[PersistBuffers] -> Value
PersistBuffers -> Encoding
PersistBuffers -> Value
(PersistBuffers -> Value)
-> (PersistBuffers -> Encoding)
-> ([PersistBuffers] -> Value)
-> ([PersistBuffers] -> Encoding)
-> ToJSON PersistBuffers
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [PersistBuffers] -> Encoding
$ctoEncodingList :: [PersistBuffers] -> Encoding
toJSONList :: [PersistBuffers] -> Value
$ctoJSONList :: [PersistBuffers] -> Value
toEncoding :: PersistBuffers -> Encoding
$ctoEncoding :: PersistBuffers -> Encoding
toJSON :: PersistBuffers -> Value
$ctoJSON :: PersistBuffers -> Value
ToJSON)