Im new to learning Haskell and have been using the book "Haskell-The Craft of Functional Programming 3rd edition" and am stuck on Chapter 12 regarding regular expressions, problem 12.16 in particular:
implement the following functions: option,plus:: RegExp->RegExp -where option e matches 0 or 1 occurence of e and plus e matches 1 or more occurence of e.
Im not sure where to evenbegin so any help would be appreciated! Thanks
regex-applicativeoffers a particularly pleasant API for dealing with regular languages.