AFP Course
Home
Education Page
Schedule
Literature
Assignment
Exercises
DSL Topics
Organization
Discussion Forum
Useful Links
Haskell Home
Haskell 98 Report
GHC Home
GHC Libraries
Profiling with GHC
Monad Tutorial
wxHaskell
HC&A Report
Haddock
WASH examples
Growing a Language
Center for ST
Home
Master Program
Center
Home
Courses
People
Projects
Page
Edit Page
Rename Page
Attach File
Printable
Wiki Source
More ...
Web
Recent Changes
Notify Service
News
Page Index
Search
More ...
Wiki
About TWiki
Text Formatting
Registration
Change Password
Reset Password
Users
Groups
Log In
or
Register
Quick Check
Afp0405
---+ AFP Exercise 4: Testing and Tracing For the fourth exercise of AFP, you have to use the Quickcheck library as well as the Hat debugging tools. More precisely, you are asked to answer the questions about merge-sort that are included in the Quickcheck/Hat paper. These questions can be found in Section 7.1 on pages 37 and 38 (_Exercises 1-7_). In addition to your answers for the seven questions, please give a *short opinion* (5-10 sentences) about the usefulness of Quickcheck and Hat for testing and tracing functional programs. How well did you get on with the tools? Will you ever consider using it for larger applications? ---+++ Resources * The paper [[http://www.cs.kent.ac.uk/pubs/2003/1896/][Testing and Tracing Lazy Functional Programs using QuickCheck and Hat]] <br> _(Claessen, Runciman, Chitil, Hughes, Wallace)_ containing the exercises. * The example programs are available at [[http://www.cs.york.ac.uk/fp/afp02/]]. Alternatively, you may also use this [[%ATTACHURL%/prac.zip][zip]] file. * Quickcheck is part of GHC's hierarchical libraries, and the latest version can be found [[http://www.haskell.org/ghc/docs/latest/html/libraries/QuickCheck/Test.QuickCheck.html][here]]. * The sources for building Hat can be found at the project's [[http://www.haskell.org/hat/][homepage]] (check out the system requirements first). You need to install [[http://www.haskell.org/hmake/][hmake]] beforehand. ---+++ General remark If someone succeeds in building the =hat-trail= and =hat-observe= tools on the Windows platform, please put the executables online (for instance on this Wiki) so that others can benefit from this. (Or inform me, then I will add it.) ---+++ Addendum _(June 17th, 2005)_ %X% Due to the problems with (compiling and running) the Hat toolbox under Windows, you may continue with this exercise without using Hat. Building Hat on other platforms should be more straightforward (for instance, on my mac I didn't experience any problem at all). If you succeed in building Hat, please let me know. Huib added some comments to the [[Discussion Forum]] about errors on the readline package when using QuickCheck, and these comments may be helpful to others. Because the deadline was scheduled for today, you will be given a bit more time to complete this exercise. I propose that all solutions are submitted to me before the next lecture, that is, *Tuesday 21 June*.
Topic attachments
I
Attachment
Action
Size
Date
Who
Comment
zip
prac.zip
manage
11.1 K
09 Jun 2005 - 15:20
BastiaanHeeren
Practical Exercises for
QuickCheck
and Hat