-
-
Save Kiwi/2fb7c8ad23d9310d437c6311db534096 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cancelUnit :: | |
Iso (a, ()) (b, ()) a b | |
cancelUnit = | |
iso | |
(\(a, ()) -> a) | |
(\b -> (b, ())) | |
cancelVoid :: | |
Iso (Either a Void) (Either b Void) a b | |
cancelVoid = | |
dimap (either id absurd) (fmap Left) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment