HCard-0.0: A library for implementing a Deck of Cards

Safe HaskellSafe-Infered

Data.HCard.Examples

Description

Author : Joe Fredette License : BSD3 Copyright : Joe Fredette

Maintainer : Joe Fredette jfredett.at.gmail.dot.com Stability : Unstable Portability : portable

Documentation

countPairs :: Card s a => CardT s a -> Hand s a -> IntSource

countHeels :: (Num a, Card a1 Index) => CardT a1 Index -> Hand a1 Index -> aSource

isRun :: (Eq a, Num a) => [a] -> BoolSource

allKTups :: [a] -> [[a]]Source

uniqPairs :: Eq a => [a] -> [(a, a)]Source