chessIO-0.6.0.0: Basic chess library
Safe HaskellNone
LanguageHaskell2010

Game.Chess.PGN

Documentation

newtype PGN Source #

Constructors

PGN [Game] 

Instances

Instances details
Eq PGN Source # 
Instance details

Defined in Game.Chess.PGN

Methods

(==) :: PGN -> PGN -> Bool #

(/=) :: PGN -> PGN -> Bool #

Semigroup PGN Source # 
Instance details

Defined in Game.Chess.PGN

Methods

(<>) :: PGN -> PGN -> PGN #

sconcat :: NonEmpty PGN -> PGN #

stimes :: Integral b => b -> PGN -> PGN #

Monoid PGN Source # 
Instance details

Defined in Game.Chess.PGN

Methods

mempty :: PGN #

mappend :: PGN -> PGN -> PGN #

mconcat :: [PGN] -> PGN #

type Game = ([(ByteString, Text)], (Outcome, Forest PlyData)) Source #

data Outcome Source #

Constructors

Win Color 
Draw 
Undecided 

Instances

Instances details
Eq Outcome Source # 
Instance details

Defined in Game.Chess.PGN

Methods

(==) :: Outcome -> Outcome -> Bool #

(/=) :: Outcome -> Outcome -> Bool #

Ord Outcome Source # 
Instance details

Defined in Game.Chess.PGN

Show Outcome Source # 
Instance details

Defined in Game.Chess.PGN

Pretty Outcome Source # 
Instance details

Defined in Game.Chess.PGN

Methods

pretty :: Outcome -> Doc ann #

prettyList :: [Outcome] -> Doc ann #

hPutPGN :: Handle -> RAVOrder (Doc ann) -> PGN -> IO () Source #

pgnDoc :: RAVOrder (Doc ann) -> PGN -> Doc ann Source #

type RAVOrder a = (Forest PlyData -> a) -> Forest PlyData -> [a] Source #

gameDoc :: RAVOrder (Doc ann) -> Game -> Doc ann Source #