Last active
March 22, 2022 20:24
-
-
Save GeoffChurch/a2a5924461cebeec23ed4b0531407a79 to your computer and use it in GitHub Desktop.
Double negation elimination in Haskell assuming universe of only 2 types: () and Void
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
import Data.Void ( Void ) | |
dneFalse :: ((Void -> Void) -> Void) -> Void | |
dneFalse f = f id | |
dneTrue :: ((() -> Void) -> Void) -> () | |
dneTrue _ = () |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment