Haskell Hierarchical Libraries (collections package)ContentsIndex
Data.Tree.AVL.Test.Counter
Portabilityportable
Stabilitystable
Maintainerhttp://homepages.nildram.co.uk/~ahey/em.png
Description
This module defines the XInt type which is a specialised instance of Ord which allows the number of comparisons performed to be counted. This may be used evaluate various algorithms. The functions defined here are not exported by the main Data.Tree.AVL module. You need to import this module explicitly if you want to use any of them.
Synopsis
newtype XInt = XInt Int
getCount :: IO Int
resetCount :: IO ()
Documentation
newtype XInt
Basic data type.
Constructors
XInt Int
show/hide Instances
Eq XInt
Ord XInt
Read XInt
Show XInt
getCount :: IO Int
Read the current comparison counter.
resetCount :: IO ()
Reset the comparison counter to zero.
Produced by Haddock version 0.7