Created
July 17, 2013 04:16
-
-
Save techtangents/6017661 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
data Effect = Effect { | |
unsafePerform :: () | |
} | |
data Effect1 a = Effect1 { | |
unsafePerform1 :: a -> () | |
} | |
effectToEffect1 :: Effect -> Effect1 a | |
--effectToEffect1 fx = Effect1 (\_ -> unsafePerform fx) | |
effectToEffect1 = Effect1 . const . unsafePerform |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment