Hi, has anybody here experience miranda before? I need help with algebraic types and type synonym?

Thanks

Miranda has a lot of similarities to Haskell. I can't say for sure that I can help you, but post your question and we'll see.

Even if I can't, there are a lot of knowledgeable Haskell folks here that probably can.

Hi, thanks for the reply. I need to do create an alegbraic type to show the suits in a card and use this type in a type synonym to like show a specific card like ' 9 of spades '

I think the first bit i can do

cardsuit ::= Hearts | Diamonds | Spades | Clubs

but i dont know what types they should be or the type synonym? any ideas? I think i should be using enumerated types?

Thanls

Any one please?

What types they should be? What is they?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.