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

Safe HaskellNone
LanguageHaskell98

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 -> Int Source

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

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

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

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