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

D'oh, of course start posit...

630067ad4c10410798d1550152f20d41 Talk
module Main where
import Data.IORef
import Data.List
...

Haskell On Graham scan

by jarkko, September 10, 2011 06:03

erisco, you're right. There...

630067ad4c10410798d1550152f20d41 Talk
module Maze where

import Control.Monad
...

Haskell Maze generator

by jarkko, September 10, 2011 05:20, 1 refactoring

Depth-first search based ma...

630067ad4c10410798d1550152f20d41 Talk
module ReformatText(main) where

import System(getArgs)
...

Haskell Text reformatter

by jarkko, September 06, 2011 01:12, No refactoring

Wrote a text reformatter as...

630067ad4c10410798d1550152f20d41 Talk
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...

630067ad4c10410798d1550152f20d41 Talk
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...

630067ad4c10410798d1550152f20d41 Talk
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...

630067ad4c10410798d1550152f20d41 Talk
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...

630067ad4c10410798d1550152f20d41 Talk
main = do s <- getContents
          putStr (unlines (reverse (rotate (lines s))))

...

Haskell Cat90

by jarkko, November 11, 2008 22:53, 3 refactorings, tagged with haskell

Rotates text given in stdin...

630067ad4c10410798d1550152f20d41 Talk
module Main where
import List
import Text.Regex.Posix
...

Haskell Graham scan

by jarkko, October 29, 2008 19:52, 3 refactorings, tagged with algorithm, haskell, gtk, cairo

My first experiment with Ha...

630067ad4c10410798d1550152f20d41 Talk