stefanooldeman/Poker — Issue #1: We should fix; Shuffle :: Deck -> IO Deck
Author: stefanooldeman
Created: 2011-11-23 09:26:12+00:00
State: open

I've created shuffleDeck (commited in 473c14d520) my next problem might be obvious: get rid of the `IO Deck` type.

My suggestion is: Perform unsafe IO. Sorry, but let me explain why
IMHO: _Shuffling is a great programming challanges_! And definitely one in FP, because keeping state is the one elegant way to get shuffling methods. Another way of putting this: avoiding to keep state is not impossible but creates too much new problems. (and leads me off my goals in this project)

I'm going to look into this: [haskellWiki - Dark side of IO monad](http://www.haskell.org/haskellwiki/IO_inside#Dark_side_of_IO_monad)

If you totally disagree on me, please point out a way to get done the shuffle and fix
note: lets **NOT** get into discussion here, please go to [reddit](http://www.reddit.com/r/haskell) and you'll find a topic to join