module Mpv.Data.MpvProcessConfig where

import Path (Abs, File, Path)
import Polysemy.Time.Json (json)

data MpvProcessConfig =
  MpvProcessConfig {
    MpvProcessConfig -> Maybe (Path Abs File)
executable :: Maybe (Path Abs File)
  }
  deriving stock (MpvProcessConfig -> MpvProcessConfig -> Bool
(MpvProcessConfig -> MpvProcessConfig -> Bool)
-> (MpvProcessConfig -> MpvProcessConfig -> Bool)
-> Eq MpvProcessConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MpvProcessConfig -> MpvProcessConfig -> Bool
$c/= :: MpvProcessConfig -> MpvProcessConfig -> Bool
== :: MpvProcessConfig -> MpvProcessConfig -> Bool
$c== :: MpvProcessConfig -> MpvProcessConfig -> Bool
Eq, Int -> MpvProcessConfig -> ShowS
[MpvProcessConfig] -> ShowS
MpvProcessConfig -> String
(Int -> MpvProcessConfig -> ShowS)
-> (MpvProcessConfig -> String)
-> ([MpvProcessConfig] -> ShowS)
-> Show MpvProcessConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MpvProcessConfig] -> ShowS
$cshowList :: [MpvProcessConfig] -> ShowS
show :: MpvProcessConfig -> String
$cshow :: MpvProcessConfig -> String
showsPrec :: Int -> MpvProcessConfig -> ShowS
$cshowsPrec :: Int -> MpvProcessConfig -> ShowS
Show, (forall x. MpvProcessConfig -> Rep MpvProcessConfig x)
-> (forall x. Rep MpvProcessConfig x -> MpvProcessConfig)
-> Generic MpvProcessConfig
forall x. Rep MpvProcessConfig x -> MpvProcessConfig
forall x. MpvProcessConfig -> Rep MpvProcessConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MpvProcessConfig x -> MpvProcessConfig
$cfrom :: forall x. MpvProcessConfig -> Rep MpvProcessConfig x
Generic)
  deriving anyclass (MpvProcessConfig
MpvProcessConfig -> Default MpvProcessConfig
forall a. a -> Default a
def :: MpvProcessConfig
$cdef :: MpvProcessConfig
Default)

json ''MpvProcessConfig