We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab511db + 48bcfe5 commit 37fadf1Copy full SHA for 37fadf1
README.md
@@ -46,6 +46,11 @@
46
data Regex :: *
47
48
49
+### Type Class Instances
50
+
51
+ instance showRegex :: Show Regex
52
53
54
### Values
55
56
match :: Regex -> String -> [String]
src/Data/String/Regex.purs
@@ -1,7 +1,23 @@
1
-module Data.String.Regex where
+module Data.String.Regex (
2
+ Regex(..),
3
+ regex,
4
+ test,
5
+ match,
6
+ replace,
7
+ replace',
8
+ search
9
+ ) where
10
11
foreign import data Regex :: *
12
13
+foreign import showRegex'
14
+ "function showRegex$prime(r){\
15
+ \ return '' + r;\
16
+ \}" :: Regex -> String
17
18
+instance showRegex :: Show Regex where
19
+ show = showRegex'
20
21
foreign import regex
22
"function regex(s1) {\
23
\ return function(s2) {\
0 commit comments