module Mpv.Data.Subtitles where

import Polysemy.Time.Json (json)

import Mpv.Data.Subtitle (Subtitle)
import Mpv.Data.SubtitleId (SubtitleId)

data Subtitles =
  Subtitles {
    Subtitles -> Maybe SubtitleId
active :: Maybe SubtitleId,
    Subtitles -> [Subtitle]
subtitles :: [Subtitle]
  }
  deriving stock (Subtitles -> Subtitles -> Bool
(Subtitles -> Subtitles -> Bool)
-> (Subtitles -> Subtitles -> Bool) -> Eq Subtitles
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Subtitles -> Subtitles -> Bool
$c/= :: Subtitles -> Subtitles -> Bool
== :: Subtitles -> Subtitles -> Bool
$c== :: Subtitles -> Subtitles -> Bool
Eq, Int -> Subtitles -> ShowS
[Subtitles] -> ShowS
Subtitles -> String
(Int -> Subtitles -> ShowS)
-> (Subtitles -> String)
-> ([Subtitles] -> ShowS)
-> Show Subtitles
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Subtitles] -> ShowS
$cshowList :: [Subtitles] -> ShowS
show :: Subtitles -> String
$cshow :: Subtitles -> String
showsPrec :: Int -> Subtitles -> ShowS
$cshowsPrec :: Int -> Subtitles -> ShowS
Show, (forall x. Subtitles -> Rep Subtitles x)
-> (forall x. Rep Subtitles x -> Subtitles) -> Generic Subtitles
forall x. Rep Subtitles x -> Subtitles
forall x. Subtitles -> Rep Subtitles x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Subtitles x -> Subtitles
$cfrom :: forall x. Subtitles -> Rep Subtitles x
Generic)

json ''Subtitles