I'm given the following where:
data Card = Card Suit Rank deriving (Eq, Ord, Show) type BidFunc = Card -- ^ trump card -> [Card] -- ^ list of cards in the player's hand -> Int -- ^ number of players -> [Int] -- ^ bids so far -> Int -- ^ the number of tricks the player intends to win where I'm required to write a function of
makeBid :: BidFunc makeBid = (write here) The problem I'm having is that i couldnt understand the syntax of the function type declared which is BidFunc. I'm new to Haskell so i would appreciate if someone could give me an explanation clear enough on the function type above.
In particularly, why is there a '=' Card, followed by -> [Card] etc? Am i supposed to pass in arguments to the function type?