purescript / purescript-strings

String utility functions, Char type, regular expressions.
BSD 3-Clause "New" or "Revised" License
54 stars 71 forks source link

Shorthand: unsafeRegex :: String -> RegexFlags -> Regex #73

Closed rightfold closed 7 years ago

rightfold commented 7 years ago

Hard-coded regexes are so incredibly common, and there is no sensible thing to do other than crash when you got them wrong (except compiler error/warning? 😸), so I think this short-hand is very useful?

paf31 commented 7 years ago

Yes, agreed.