-
-
Save tonymorris/2d1030235c0c447d2ec515d752169195 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