chessIO-0.9.5.0: Basic chess library
Copyright(c) Mario Lang 2021
LicenseBSD3
Maintainermlang@blind.guru
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Game.Chess.SAN

Description

Parsers and printers for Algebraic Notation.

Synopsis

Conversion

Parsers

class SANToken a Source #

Minimal complete definition

sanPieceToken, fileToken, rankToken, promotionPieceToken, statusToken

strictSAN :: forall s. (Stream s, SANToken (Token s), IsString (Tokens s)) => Position -> Parser s Ply Source #

relaxedSAN :: (Stream s, SANToken (Token s), IsString (Tokens s)) => Position -> Parser s Ply Source #

Utilities

varToSAN :: (MonoFoldable variation, Element variation ~ Ply, IsString string) => Position -> variation -> string Source #