We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f158cec commit 6262ccbCopy full SHA for 6262ccb
1 file changed
demo/fsharp-demo.fsx
@@ -17,7 +17,7 @@ let formatLong o =
17
let formatInput (o : options) =
18
sprintf "--stringvalue: %s\n-i: %A\n-x: %b\nvalue: %s\n" o.stringValue (Array.ofSeq o.intSequence) o.boolValue (formatLong o.longValue)
19
20
-let (|Success|Fail|) (result : ParserResult<'a>) =
+let inline (|Success|Fail|) (result : ParserResult<'a>) =
21
match result with
22
| :? Parsed<'a> as parsed -> Success(parsed.Value)
23
| :? NotParsed<'a> as notParsed -> Fail(notParsed.Errors)
0 commit comments