chessica-0.1.0.0: A Library for Chess Game Logic
Copyright(c) Michael Szvetits 2023
LicenseBSD-3-Clause (see the file LICENSE)
Maintainertypedbyte@qualified.name
Stabilitystable
Portabilityportable
Safe HaskellSafe-Inferred
LanguageGHC2021

Chess.Some

Description

Types and functions to create an existential type.

Synopsis

Documentation

data Some f Source #

This existential type is used to "erase" the type parameter of a type, which allows one to define types and functions that are agnostic to the erased type parameter.

Constructors

forall t. Some (f t) 

Instances

Instances details
Show (Some PlacedPiece) Source # 
Instance details

Defined in Chess.Board.PlacedPiece

Show (Some Piece) Source # 
Instance details

Defined in Chess.Piece

Eq (Some PlacedPiece) Source # 
Instance details

Defined in Chess.Board.PlacedPiece

Eq (Some Piece) Source # 
Instance details

Defined in Chess.Piece

Methods

(==) :: Some Piece -> Some Piece -> Bool #

(/=) :: Some Piece -> Some Piece -> Bool #

Ord (Some PlacedPiece) Source # 
Instance details

Defined in Chess.Board.PlacedPiece

Ord (Some Piece) Source # 
Instance details

Defined in Chess.Piece