Created
June 4, 2018 11:33
-
-
Save zyla/29094f3206dcd6f3d9011523da9b3af7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 GRef da a = GRef (Dynamic a) (Callback da) | |
newtype Ref a = GRef (a -> a) a | |
type GLens s ds a da = { get :: s -> a, modify :: da -> ds } | |
type Lens s a = GLens s (s -> s) a (a -> a) = { get :: s -> a, modify :: (a -> a) -> (s -> s) } | |
type ElmStateRef = GRef Action State | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment