Solved

Posted on 2002-05-25
281 Views
Hi
I got a Haskell exam in a few days and doing the pastpaper of it. Since the anwer of it is not given it would be very helpful if anyone could check some of my answer which I am not sure about, and answer the questions which I have no idea...
Thank you very much
asukai

(a) What is a qualified type in Haskell?
Qualified type is a type which consist of more than one type. For instance, Integral a=> a-> a is a qualified type where Integral is type class whose element is int and Integer.

(b) What are the types of the following Haskell functions?
(i) one x y = x < y
Boolean
(ii) two x y = x + y
Real
(iii) three x y = xy
Real

(iv) four x y = x + + y
List
(v) five x y = x ! ! y
An element of List. Eq. (not sure)
(vi) six x y = x = = y
boolean.

(c) In the context of a functional programming language what is a homomorphism?

No idea.
languages as compared with other sorts of language.

Good programming practise.
Simpler and shorter code.

Anything else?

Not flexible.
Strict Syntax. Need to specify type for each function.
Limited libeary.
It only deals with calculation problem.
Anything else?
0
Question by:asukai
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 6

Accepted Solution

Triskelion earned 50 total points
ID: 7048259
0

LVL 54

Expert Comment

ID: 7515112

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
- PAQ'd and pts removed
next seven days.

Nic;o)
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

### Suggested Solutions

In this post we will learn different types of Android Layout and some basics of an Android App.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
###### Suggested Courses
Course of the Month7 days, 8 hours left to enroll