blob: f13fc68543ed148f5a845d56a4068d3067e9cdd6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
definition module Regex
from Data.Maybe import ::Maybe
from StdOverloaded import class toString, class fromString, class zero
:: Regex
:: Flag :== Int
:: Flags :== Int
instance zero Flags
class toRegex a :: !Flags !a -> Maybe Regex
class fromRegex a :: !Regex -> a
instance toRegex String
instance fromRegex String
instance toString Regex
instance fromString (Maybe Regex)
freeRegex :: !Regex -> String
// Nothing on error; otherwise True iff match
match :: !Regex !String -> Maybe Bool
|