module Mpv.Data.Seek where

import Polysemy.Time.Json (json)

import Mpv.Data.SeekFlags (SeekFlags)

data Seek =
  Seek {
    Seek -> Double
position :: Double,
    Seek -> SeekFlags
flags :: SeekFlags
  }
  deriving stock (Seek -> Seek -> Bool
(Seek -> Seek -> Bool) -> (Seek -> Seek -> Bool) -> Eq Seek
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Seek -> Seek -> Bool
$c/= :: Seek -> Seek -> Bool
== :: Seek -> Seek -> Bool
$c== :: Seek -> Seek -> Bool
Eq, Int -> Seek -> ShowS
[Seek] -> ShowS
Seek -> String
(Int -> Seek -> ShowS)
-> (Seek -> String) -> ([Seek] -> ShowS) -> Show Seek
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Seek] -> ShowS
$cshowList :: [Seek] -> ShowS
show :: Seek -> String
$cshow :: Seek -> String
showsPrec :: Int -> Seek -> ShowS
$cshowsPrec :: Int -> Seek -> ShowS
Show)

json ''Seek