Skip to content

Instantly share code, notes, and snippets.

@aavogt
Created June 11, 2019 20:59
Show Gist options
  • Save aavogt/060802e6fc9b91afe006ad2157dab888 to your computer and use it in GitHub Desktop.
Save aavogt/060802e6fc9b91afe006ad2157dab888 to your computer and use it in GitHub Desktop.
-- we can implement drawN_ in terms of drawN, but not the other way around
--
drawN_ :: MonadState s m => (forall b. [b] -> m [b]) -> m ()
drawN_ = drawN
drawN :: MonadState s m => ([Card] -> m [Card]) -> m ()
drawN shuffle = _
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment