Haskell sample codes and exercises