Haskell Question

Posted on 2002-05-26
Last Modified: 2010-04-16
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

(a) What is a qualified type in Haskell?
My answer:
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
My answer:
(ii) two x y = x + y
(iii) three x y = xy

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

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

No idea.
(a) Discuss the advantages and disadvantages of pure functional programming
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?
Question by:asukai
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
  • Learn & ask questions
  • 2

Expert Comment

ID: 7048235
According to this page:

the ++ is "infix"

For number two, are you looking for "add" or "Lambda Abstractions"?

Check out these pages:

Accepted Solution

Triskelion earned 100 total points
ID: 7048264

Expert Comment

ID: 7186969
(v) five x y = x ! ! y
An element of List. Eq. (not sure)
type of list x

Good programming practise.
Simpler and shorter code.

Anything else?
Ability to follow mathmatical arguments? (maybe)
I disagree with good programming practise, good recursion practise maybe, not general programming practise.

(c) In the context of a functional programming language what is a homomorphism
I forgot!!



Expert Comment

ID: 9314523
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Positioning and setting color of buttons on a Firemonkey form 12 2,205
Help with If Then Statement 8 329
ROUND() from fbudf.dll only gives integers 2 1,062
Youtube stream inside Delphi 1 1,576
Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime is disastrous for companies and can lead to major hits on a brand, reputation, an…
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit If you want to manage em…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question