Skip to content

Instantly share code, notes, and snippets.

@esad
Created January 7, 2017 18:16
Show Gist options
  • Save esad/f6ba3792518f6ddf6dfa535b72e7cfeb to your computer and use it in GitHub Desktop.
Save esad/f6ba3792518f6ddf6dfa535b72e7cfeb to your computer and use it in GitHub Desktop.
modify' f = do
modify f
state <- get
localStorage <- fromEff getLocalStorage
fromEff $ setItem localStorage stateKey state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment