/PortletReviewer/Definitions.hs

http://hdbc.googlecode.com/ · Haskell · 13 lines · 8 code · 5 blank · 0 comment · 0 complexity · 039a6c620d2f65b9d5dc7c30394d9234 MD5 · raw file

  1. module Definitions where
  2. import Text.Regex
  3. type FileLines = [String]
  4. type LineNumber = Int
  5. type ErrorMessage = String
  6. type ValidationFn = FileLines -> Bool
  7. type ValidationDef = (ValidationFn, ErrorMessage)
  8. type ErrorDef = (Regex, Regex, ErrorMessage)