bishbosh-0.0.0.3: Plays chess.

Safe HaskellSafe
LanguageHaskell2010

BishBosh.Property.ShowFloat

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
An interface for floating-point data, which provides an alterative to Show.

Synopsis

Type-classes

class ShowFloat a where Source #

An alternative to Show, for floating-point data.

Minimal complete definition

showsFloat

Methods

showsFloat :: (Double -> ShowS) -> a -> ShowS Source #

Instances

Real rankValue => ShowFloat (RankValues rankValue) Source # 

Methods

showsFloat :: (Double -> ShowS) -> RankValues rankValue -> ShowS Source #

Real criterionWeight => ShowFloat (CriteriaWeights criterionWeight) Source # 

Methods

showsFloat :: (Double -> ShowS) -> CriteriaWeights criterionWeight -> ShowS Source #

(Real criterionValue, Real weightedMean) => ShowFloat (WeightedMeanAndCriterionValues weightedMean criterionValue) Source # 

Methods

showsFloat :: (Double -> ShowS) -> WeightedMeanAndCriterionValues weightedMean criterionValue -> ShowS Source #

(Enum x, Enum y, Ord x, Ord y, Real pieceSquareValue, Show pieceSquareValue) => ShowFloat (PieceSquareTable x y pieceSquareValue) Source # 

Methods

showsFloat :: (Double -> ShowS) -> PieceSquareTable x y pieceSquareValue -> ShowS Source #

(Enum x, Enum y, Ord x, Ord y, Real criterionWeight, Real pieceSquareValue, Real rankValue, Show pieceSquareValue) => ShowFloat (EvaluationOptions criterionWeight pieceSquareValue rankValue x y) Source # 

Methods

showsFloat :: (Double -> ShowS) -> EvaluationOptions criterionWeight pieceSquareValue rankValue x y -> ShowS Source #

(Enum x, Enum y, Ord x, Ord y, Real criterionWeight, Real pieceSquareValue, Real rankValue, Show column, Show pieceSquareValue, Show row) => ShowFloat (Options column criterionWeight pieceSquareValue rankValue row x y) Source # 

Methods

showsFloat :: (Double -> ShowS) -> Options column criterionWeight pieceSquareValue rankValue row x y -> ShowS Source #

Types

Type-synonyms

type NDecimalDigits = Int Source #

A number of decimals digits.

Functions

showsFloatToN :: ShowFloat a => NDecimalDigits -> a -> ShowS Source #

Render the specified data to the specified number of decimal digits.