data-pprint-0.2.1.3: Prettyprint and compare Data values

Safe HaskellSafe-Infered

Data.Data.Compare

Description

Compare two Data value with time and size limit

Synopsis

Documentation

data Answer Source

Answer with possibility

  • No: no
  • Maybe d: maybe with d possibility (0-1, 1 denotes yes)
  • Yes: yes

Constructors

No 
Maybe Double 
Yes 

showAnswer :: Answer -> StringSource

Show an Answer as an equality operator.

compareDataSource

Arguments

:: Data a 
=> TimeLimit

time limit for comparison decision

-> TimeLimit

time limit for highlighting the difference

-> SizeLimit

size limit for the output (in characters)

-> a

first value

-> a

second value

-> IO (Answer, GenericData, GenericData) 

Compare two Data value with time and size limit.