CIS 552: Advanced Programming

Fall 2017

  • Home
  • Schedule
  • Homework
  • Resources
  • Style guide
  • Syllabus

HW 5 - Maybe and List Monads

Problem - Sequences

See Sequence.lhs

Problem - Regular Expressions

See RegExp.lhs

To complete the homework, download the plain-Haskell version of the two files Sequence and RegExp and answer each question, filling in code as appropriate. Your code must typecheck against the given type signatures. Also remember to add your own HUnit and QuickCheck tests.

> -- obligatory main
> main :: IO ()
> main = do putStrLn "This is HW #5"
>           return ()
Design adapted from Minimalistic Design | Powered by Pandoc and Hakyll