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.
1 parent 9bd4c5c commit 35ac564Copy full SHA for 35ac564
src/Node/FS.purs
@@ -25,6 +25,23 @@ data FileFlags = R | R_PLUS | RS | RS_PLUS
25
| W | WX | W_PLUS | WX_PLUS
26
| A | AX | A_PLUS | AX_PLUS
27
28
+instance showFileFlags :: Show FileFlags where
29
+ show R = "R"
30
+ show R_PLUS = "R_PLUS"
31
+ show RS = "RS"
32
+ show RS_PLUS = "RS_PLUS"
33
+ show W = "W"
34
+ show WX = "WX"
35
+ show W_PLUS = "W_PLUS"
36
+ show WX_PLUS = "WX_PLUS"
37
+ show A = "A"
38
+ show AX = "AX"
39
+ show A_PLUS = "A_PLUS"
40
+ show AX_PLUS = "AX_PLUS"
41
+
42
+instance eqFileFlags :: Eq FileFlags where
43
+ eq x y = show x == show y
44
45
fileFlagsToNode :: FileFlags -> String
46
fileFlagsToNode ff = case ff of
47
R -> "r"
0 commit comments