Skip to content

Instantly share code, notes, and snippets.

@reidev275
Created January 23, 2019 21:24
Show Gist options
  • Save reidev275/67e4831d69727b029762cf4bcf9816d8 to your computer and use it in GitHub Desktop.
Save reidev275/67e4831d69727b029762cf4bcf9816d8 to your computer and use it in GitHub Desktop.
import Control.Monad.Free (liftF)
forward ∷ State → Dsl State
forward state = liftF $ Forward state identity
backward ∷ State → Dsl State
backward state = liftF $ Backward state identity
-- ... it's the same for the others as well
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment