startRow <- randomRIO (0 :: Int, rows - 1)
startColumn <- randomRIO (0 :: Int, columns - 1)
seeds <- replicateM (rows * columns) (randomRIO (0 :: Int, (max rows columns)))
...
Haskell On Maze generator
by jarkko,
September 11, 2011 22:51
module Maze where import Control.Monad ...
Haskell Maze generator
by jarkko,
September 10, 2011 05:20,
1 refactoring
Depth-first search based ma...
module ReformatText(main) where import System(getArgs) ...
Haskell Text reformatter
by jarkko,
September 06, 2011 01:12,
No refactoring
Wrote a text reformatter as...
module Currency where import Text.Regex.Posix ...
Haskell On Simple US currency parser
by jarkko,
September 03, 2011 03:03
Was required to have also c...
module Currency where import Text.Regex.Posix ...
Haskell On Simple US currency parser
by jarkko,
September 03, 2011 00:10
D'oh. Of course with regula...
module Currency where import Text.Regex.Posix ...
Haskell On Simple US currency parser
by jarkko,
September 03, 2011 00:10
D'oh. Of course with regula...
currency [] = error "empty string" currency (x:[]) = error "invalid string" currency (x:xs) ...
Haskell Simple US currency parser
by jarkko,
September 02, 2011 13:08,
3 refactorings
Skimmed through the book "S...
main = do s <- getContents
putStr (unlines (reverse (rotate (lines s))))
...
Haskell Cat90
Rotates text given in stdin...
D'oh, of course start posit...