Skip navigation

Haskell Icon Sources

Collection of sources used or discussed in the course.

    Module Source referred to in:
     
 

Lectures

   
   
Temperature
Defines a type Temperature with several conversion routines as well as tests against specifications.
Haskell source file
Programming Foundations, Algebraic Types
   
Bike_Computer
Defining types and simply continuous functions. The code has been programmed interactively in the lecture and some code fragments might only make sense if you listen to the accompanying lecture recording.
Haskell source file
Programming Foundations, Algebraic Types
   
Sorting
Contains mergesort, insert_sort and quicksort, as well as the accompanying test routines.
Haskell source file
Programming Foundations, Algebraic Types
   
Boolean_XOr
Six ways to define this boolean function.
Haskell source file
Abstract Types
   
Rational_Pi
Defines a more precise version of pi.
Haskell source file
Abstract Types
   
Pattern_matching
Showcases a common pitfall with rigid and flexible length pattern matching.
Haskell source file
Algebraic Types
   
Live_Recursion (& Integer_Subtypes)
Code from the live programming lecture about recursion. The code has been programmed interactively in the lecture and some code fragments might only make sense if you listen to the accompanying lecture recording.
Haskell source file
Haskell source file
Algebraic Types
   
Is_Element
Four ways to define an "is element of list" function.
Haskell source file
Algebraic Types
   
Fractal_Tree
A recursive function to draw a tree based on a single shape.
Haskell source file
Algebraic Types
   
Geometry
Includes the Vector_3D definition and operations, as well as the definition of basic Geometry.
Haskell source file
Algebraic Types
   
Binary_Trees
Defines a binary Tree data structure with basic operations.
Haskell source file
Algebraic Types
   
Balanced_Trees
Code from the live programming lecture about algebraic data types. The code has been programmed interactively in the lecture and some code fragments might only make sense if you listen to the accompanying lecture recording.
Haskell source file
Algebraic Types
   
AVL_Trees
Self-balancing tree implementation, based on the original design by G. M. Adelson-Velskii and E. M. Landis from 1962.
Haskell source file
Algebraic Types (comp1130)
   
Mapping_and_Folding
Motivation and examples for higher order functions.
Haskell source file
Modular Programming
   
Sets
A module for sets based on equality alone.
Haskell source file
Modular Programming
   
Sets_Ordered
A module for sets based on order.
Haskell source file
Modular Programming
   
Sets_Binary_Search
A module for sets based on order and binary search trees.
Haskell source file
Modular Programming
   
Tables
Tables_Ordered_Keys
Tables_Types
Tables_Implementation
A module for sets based on order and binary search trees.
Haskell source file
Haskell source file
Haskell source file
Haskell source file
Modular Programming
         
     
 

Laboratories

   
    Lab 2: Linux and the Haskell interpreter: num_words.hs Haskell source file Lab 2
    Lab 4: Functions: ZellersCongruence.hs Haskell source Lab 4
         
 

Assignments

   
    Wireworld code base Haskell source file (tgz)
Haskell source file (zip)
Assignment 1
    Compression algorithms code base Haskell source file (tgz)
Haskell source file (zip)
Assignment 2
         

 

Updated:   Saturday 12 May, 2012 16:28 / Responsible Officer:   JavaScript must be enabled to display this email address. / Page Contact:   Course Webmaster