Haskell logo CIS 552: Advanced Programming

Fall 2019

  • 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.

> module Main where
> import qualified Sequence
> import qualified RegExp
> main :: IO ()
> main = do putStrLn "This is Sequence"
>           Sequence.main
>           putStrLn "This is RegExp"
>           RegExp.main
Design adapted from Minimalistic Design | Powered by Pandoc and Hakyll