french-cards-0.1.1: French Playing Cards

Safe HaskellNone
LanguageHaskell2010

Game.FrenchCards.Card

Contents

Description

Card

Synopsis

Documentation

newtype Card Source #

Card type

Constructors

Card Word8 

Instances

Construction

newCard :: Rank -> Suit -> Card Source #

Create a new card

Accessors

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