aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Borner2024-11-27 14:46:36 +0100
committerMarvin Borner2024-11-27 14:46:36 +0100
commit475d0c1e5ea8d56f802f850a741c6eaaaf9f5b09 (patch)
tree49d9ff2c51600617931a346d6c86843ae3c8fc86
parent6da602b0a29afcd2aa15725547375a80e30b3983 (diff)
Fix eitherHEADmain
-rw-r--r--src/either.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/either.js b/src/either.js
index 75b3c4c..5bc4ab6 100644
--- a/src/either.js
+++ b/src/either.js
@@ -3,8 +3,8 @@ import * as wrapper from "./wrapper.js"
export const Left = v => left => right => left(v)
export const Right = v => left => right => right(v)
-export const isLeft = either => either(true)(_ => false)
-export const isRight = either => either(false)(_ => true)
+export const isLeft = either => either(_ => true)(_ => false)
+export const isRight = either => either(_ => false)(_ => true)
export const getLeft = left => left(v => v)()
export const getRight = right => right()(v => v)