954,141 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Miranda

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

Thanks

nov_bbt
Newbie Poster
7 posts since Dec 2007
Reputation Points: 10
Solved Threads: 0
 

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.

Duoas
Postaholic
2,043 posts since Oct 2007
Reputation Points: 1,140
Solved Threads: 229
 

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

nov_bbt
Newbie Poster
7 posts since Dec 2007
Reputation Points: 10
Solved Threads: 0
 

Any one please?

nov_bbt
Newbie Poster
7 posts since Dec 2007
Reputation Points: 10
Solved Threads: 0
 

What types they should be? What is they?

sarehu
Posting Whiz in Training
289 posts since Oct 2007
Reputation Points: 98
Solved Threads: 22
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You