| Copyright | (c) Michael Szvetits 2023 |
|---|---|
| License | BSD-3-Clause (see the file LICENSE) |
| Maintainer | typedbyte@qualified.name |
| Stability | stable |
| Portability | portable |
| Safe Haskell | Safe-Inferred |
| Language | GHC2021 |
Chess.Some
Description
Types and functions to create an existential type.
Documentation
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
| Show (Some PlacedPiece) Source # | |
Defined in Chess.Board.PlacedPiece | |
| Show (Some Piece) Source # | |
| Eq (Some PlacedPiece) Source # | |
Defined in Chess.Board.PlacedPiece Methods (==) :: Some PlacedPiece -> Some PlacedPiece -> Bool # (/=) :: Some PlacedPiece -> Some PlacedPiece -> Bool # | |
| Eq (Some Piece) Source # | |
| Ord (Some PlacedPiece) Source # | |
Defined in Chess.Board.PlacedPiece Methods compare :: Some PlacedPiece -> Some PlacedPiece -> Ordering # (<) :: Some PlacedPiece -> Some PlacedPiece -> Bool # (<=) :: Some PlacedPiece -> Some PlacedPiece -> Bool # (>) :: Some PlacedPiece -> Some PlacedPiece -> Bool # (>=) :: Some PlacedPiece -> Some PlacedPiece -> Bool # max :: Some PlacedPiece -> Some PlacedPiece -> Some PlacedPiece # min :: Some PlacedPiece -> Some PlacedPiece -> Some PlacedPiece # | |
| Ord (Some Piece) Source # | |