compile :: CompOption -- ^ Flags (summed together)
        -> ExecOption -- ^ Flags (summed together)
        -> Rope -- ^ The regular expression to compile
        -> Either String Regex -- ^ Returns: the compiled regular expression
compile compOpt execOpt rope =
    case parseRegex (R.unpack rope) of
        Left err -> Left ("parseRegex for Ebitor.Rope.Regex failed:"++show err)
        Right pattern -> Right (patternToRegex pattern compOpt execOpt)
compile :: CompOption -- ^ Flags (summed together)
        -> ExecOption -- ^ Flags (summed together)
        -> Rope -- ^ The regular expression to compile
        -> Either String Regex
compile compOpt execOpt rope =
    case parseRegex (R.unpack rope) of
        Left err -> Left ("parseRegex for Ebitor.Rope.Regex failed:"++show err)
        Right pattern -> Right (patternToRegex pattern compOpt execOpt)
compile compOpt execOpt rope =
    case parseRegex (R.unpack rope) of
        Left err -> Left ("parseRegex for Ebitor.Rope.Regex failed:"++show err)
        Right pattern -> Right (patternToRegex pattern compOpt execOpt)