module BishBosh.Attribute.CaptureMoveSortAlgorithm(
CaptureMoveSortAlgorithm(..),
tag
) where
import qualified BishBosh.Property.FixedMembership as Property.FixedMembership
import qualified Control.DeepSeq
import qualified Data.Default
import qualified Text.XML.HXT.Arrow.Pickle as HXT
import qualified Text.XML.HXT.Arrow.Pickle.Schema
tag :: String
tag :: String
tag = String
"captureMoveSortAlgorithm"
data CaptureMoveSortAlgorithm
= MVVLVA
| SEE
deriving (CaptureMoveSortAlgorithm -> CaptureMoveSortAlgorithm -> Bool
(CaptureMoveSortAlgorithm -> CaptureMoveSortAlgorithm -> Bool)
-> (CaptureMoveSortAlgorithm -> CaptureMoveSortAlgorithm -> Bool)
-> Eq CaptureMoveSortAlgorithm
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CaptureMoveSortAlgorithm -> CaptureMoveSortAlgorithm -> Bool
$c/= :: CaptureMoveSortAlgorithm -> CaptureMoveSortAlgorithm -> Bool
== :: CaptureMoveSortAlgorithm -> CaptureMoveSortAlgorithm -> Bool
$c== :: CaptureMoveSortAlgorithm -> CaptureMoveSortAlgorithm -> Bool
Eq, ReadPrec [CaptureMoveSortAlgorithm]
ReadPrec CaptureMoveSortAlgorithm
Int -> ReadS CaptureMoveSortAlgorithm
ReadS [CaptureMoveSortAlgorithm]
(Int -> ReadS CaptureMoveSortAlgorithm)
-> ReadS [CaptureMoveSortAlgorithm]
-> ReadPrec CaptureMoveSortAlgorithm
-> ReadPrec [CaptureMoveSortAlgorithm]
-> Read CaptureMoveSortAlgorithm
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CaptureMoveSortAlgorithm]
$creadListPrec :: ReadPrec [CaptureMoveSortAlgorithm]
readPrec :: ReadPrec CaptureMoveSortAlgorithm
$creadPrec :: ReadPrec CaptureMoveSortAlgorithm
readList :: ReadS [CaptureMoveSortAlgorithm]
$creadList :: ReadS [CaptureMoveSortAlgorithm]
readsPrec :: Int -> ReadS CaptureMoveSortAlgorithm
$creadsPrec :: Int -> ReadS CaptureMoveSortAlgorithm
Read, Int -> CaptureMoveSortAlgorithm -> ShowS
[CaptureMoveSortAlgorithm] -> ShowS
CaptureMoveSortAlgorithm -> String
(Int -> CaptureMoveSortAlgorithm -> ShowS)
-> (CaptureMoveSortAlgorithm -> String)
-> ([CaptureMoveSortAlgorithm] -> ShowS)
-> Show CaptureMoveSortAlgorithm
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CaptureMoveSortAlgorithm] -> ShowS
$cshowList :: [CaptureMoveSortAlgorithm] -> ShowS
show :: CaptureMoveSortAlgorithm -> String
$cshow :: CaptureMoveSortAlgorithm -> String
showsPrec :: Int -> CaptureMoveSortAlgorithm -> ShowS
$cshowsPrec :: Int -> CaptureMoveSortAlgorithm -> ShowS
Show)
instance Control.DeepSeq.NFData CaptureMoveSortAlgorithm where
rnf :: CaptureMoveSortAlgorithm -> ()
rnf CaptureMoveSortAlgorithm
_ = ()
instance Data.Default.Default CaptureMoveSortAlgorithm where
def :: CaptureMoveSortAlgorithm
def = CaptureMoveSortAlgorithm
MVVLVA
range :: [CaptureMoveSortAlgorithm]
range :: [CaptureMoveSortAlgorithm]
range = [CaptureMoveSortAlgorithm
MVVLVA, CaptureMoveSortAlgorithm
SEE]
instance Property.FixedMembership.FixedMembership CaptureMoveSortAlgorithm where
members :: [CaptureMoveSortAlgorithm]
members = [CaptureMoveSortAlgorithm]
range
instance HXT.XmlPickler CaptureMoveSortAlgorithm where
xpickle :: PU CaptureMoveSortAlgorithm
xpickle = String
-> PU CaptureMoveSortAlgorithm -> PU CaptureMoveSortAlgorithm
forall a. String -> PU a -> PU a
HXT.xpAttr String
tag (PU CaptureMoveSortAlgorithm -> PU CaptureMoveSortAlgorithm)
-> ([String] -> PU CaptureMoveSortAlgorithm)
-> [String]
-> PU CaptureMoveSortAlgorithm
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (String -> CaptureMoveSortAlgorithm,
CaptureMoveSortAlgorithm -> String)
-> PU String -> PU CaptureMoveSortAlgorithm
forall a b. (a -> b, b -> a) -> PU a -> PU b
HXT.xpWrap (String -> CaptureMoveSortAlgorithm
forall a. Read a => String -> a
read, CaptureMoveSortAlgorithm -> String
forall a. Show a => a -> String
show) (PU String -> PU CaptureMoveSortAlgorithm)
-> ([String] -> PU String)
-> [String]
-> PU CaptureMoveSortAlgorithm
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Schema -> PU String
HXT.xpTextDT (Schema -> PU String)
-> ([String] -> Schema) -> [String] -> PU String
forall b c a. (b -> c) -> (a -> b) -> a -> c
. [String] -> Schema
Text.XML.HXT.Arrow.Pickle.Schema.scEnum ([String] -> PU CaptureMoveSortAlgorithm)
-> [String] -> PU CaptureMoveSortAlgorithm
forall a b. (a -> b) -> a -> b
$ (CaptureMoveSortAlgorithm -> String)
-> [CaptureMoveSortAlgorithm] -> [String]
forall a b. (a -> b) -> [a] -> [b]
map CaptureMoveSortAlgorithm -> String
forall a. Show a => a -> String
show [CaptureMoveSortAlgorithm]
range