subject

In "MP1.hs" you'll find the functions p1_ex1, p1_ex2, p1_ex3, and p1_ex4, all of which are defined but lack type declarations. Add a valid type declaration before each function definition. If you have a choice, make the type declaration as general as possible --- i. e., prefer polymorphic to monomorphic types, adding class constraints when necessary. Ensure that your code compiles (i. e., gets past the type-checker). Use a, b, c, ..., for type variable names.
Note that is trivial to "cheat" at this part by using the :t command in GHCi, or just reading compilation errors. Please try to do this without help from GHCi or the compiler --- it's good practice! You can always double-check your work afterwards.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:30
What is linux? an open source operating system a version of ms dos the first version of unix the newest technology available
Answers: 1
question
Computers and Technology, 23.06.2019 05:00
Which best explains why a digital leader would join a society specializing in technology
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Plz ( which is an example of a good url?
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
Answers: 1
You know the right answer?
In "MP1.hs" you'll find the functions p1_ex1, p1_ex2, p1_ex3, and p1_ex4, all of which are defined b...
Questions
question
Mathematics, 05.05.2020 01:12
question
History, 05.05.2020 01:12
Questions on the website: 13722363