Hid functions in RegexState.hs; now exports types, compileRegex and match