aboutsummaryrefslogtreecommitdiff
path: root/src/result.gleam
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2019-02-02 22:23:47 +0000
committerLouis Pilfold <louis@lpil.uk>2019-02-02 22:23:47 +0000
commit501e5029131d40d6b279df316ab6bb3cd64b936a (patch)
tree5c65df264383b929b46fc96c5e1ff0ea7c7e67ae /src/result.gleam
parent466eda4accdaa2e70b4f16a5dc885dcb23d8dac5 (diff)
downloadgleam_stdlib-501e5029131d40d6b279df316ab6bb3cd64b936a.tar.gz
gleam_stdlib-501e5029131d40d6b279df316ab6bb3cd64b936a.zip
Attempt to compile stdlib
Diffstat (limited to 'src/result.gleam')
-rw-r--r--src/result.gleam9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/result.gleam b/src/result.gleam
index 38dd552..ffd99e0 100644
--- a/src/result.gleam
+++ b/src/result.gleam
@@ -77,15 +77,6 @@ pub fn flatten(result) {
}
}
-// TODO: This one doesn't type check. I think because we don't generalize for
-// case expressions
-// pub fn flatten(result) {
-// case result {
-// | Ok(x) -> x
-// | Error(_) -> result
-// }
-// }
-
test flatten {
flatten(Ok(Ok(1)))
|> expect:equal(_, Ok(1))