french-cards-0.1.1: French Playing Cards
Game.FrenchCards.Card
Contents
Description
Card
Synopsis
module Game.FrenchCards.Rank
module Game.FrenchCards.Suit
newtype Card Source #
Card type
Constructors
Instances
minBound == newCard R2 Clubs maxBound == newCard Ace Spades
minBound
newCard
R2
Clubs
maxBound
Ace
Spades
Methods
minBound :: Card #
maxBound :: Card #
Indexes are from 0 to 51
succ :: Card -> Card #
pred :: Card -> Card #
toEnum :: Int -> Card #
fromEnum :: Card -> Int #
enumFrom :: Card -> [Card] #
enumFromThen :: Card -> Card -> [Card] #
enumFromTo :: Card -> Card -> [Card] #
enumFromThenTo :: Card -> Card -> Card -> [Card] #
(==) :: Card -> Card -> Bool #
(/=) :: Card -> Card -> Bool #
compare :: Card -> Card -> Ordering #
(<) :: Card -> Card -> Bool #
(<=) :: Card -> Card -> Bool #
(>) :: Card -> Card -> Bool #
(>=) :: Card -> Card -> Bool #
max :: Card -> Card -> Card #
min :: Card -> Card -> Card #
readsPrec :: Int -> ReadS Card #
readList :: ReadS [Card] #
readPrec :: ReadPrec Card #
readListPrec :: ReadPrec [Card] #
showsPrec :: Int -> Card -> ShowS #
show :: Card -> String #
showList :: [Card] -> ShowS #
newCard :: Rank -> Suit -> Card Source #
Create a new card
cardRank :: Card -> Rank Source #
Get a card rank
cardSuit :: Card -> Suit Source #
Get a card suit
cardWord :: Card -> Word8 Source #
Get an underlying card word