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
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
import Data.Packed.Matrix
import System.Environment
import System.Posix.Unistd
...

Haskell Game of Life in Haskell

by https://www.google.com/accounts/o8/id?id=AItOawmBVe2Qh_TO2UNRW1mfzLCWTyNyTytCJO4, February 24, 2011 00:11, No refactoring, tagged with haskell, game of life

I've been learning Haskell ...

55502f40dc8b7c769880b10874abc9d0 Talk
/// Rotates a list by one place forward.
let rotate lst =
    List.tail lst @ [List.head lst]
...

Haskell Combination and Permutation...

by https://www.google.com/accounts/o8/id?id=AItOawnKDqoH-UcpVbtsfwJBE19476rOzrIq9wU, December 21, 2010 01:26, No refactoring, tagged with permutations, f#, combinations

Note: code is actually F#.
...

55502f40dc8b7c769880b10874abc9d0 Talk
{- Getting the frequencies of all trigrams in a word -}

module TrigramFrequency (frequencies) where
...

Haskell Frequencies of trigrams in ...

by https://www.google.com/accounts/o8/id?id=AItOawkpAfEP31fRzpQ5wtVTGKZAHPi6zN5xh4w, November 17, 2010 08:29, 4 refactorings, tagged with word, cryptography

Any suggestions about refac...

Cf3ca7d0045e5f823c16d5f6b7687060 Talk
r13 w = map (\c -> chr ((((ord c + 13) - 97) `mod` 26) + 97) w

Haskell Shortest Rot13

by https://www.google.com/accounts/o8/id?id=AItOawkpAfEP31fRzpQ5wtVTGKZAHPi6zN5xh4w, November 08, 2010 22:40, 2 refactorings, tagged with short

Compo shortest rot 13

Cf3ca7d0045e5f823c16d5f6b7687060 Talk
g = getLine
r = toRational
c = concat
...

Haskell EGCD

by https://www.google.com/accounts/o8/id?id=AItOawkpAfEP31fRzpQ5wtVTGKZAHPi6zN5xh4w, November 08, 2010 08:18, No refactoring, tagged with short

please refactor to less cha...

Cf3ca7d0045e5f823c16d5f6b7687060 Talk
newtype Coord = Coord (Int, Int) deriving (Eq)
data Square = Square Coord Coord

...

Haskell Generating the coordinates ...

by https://www.google.com/accounts/o8/id?id=AItOawmS67NjpPtMA53HhDGkBlAqrD7qnI3Rkbk, October 12, 2010 23:11, 2 refactorings, tagged with short lists

Is there a shorter, smarter...

55502f40dc8b7c769880b10874abc9d0 Talk
type IRCHandle = Handle
type LogHandle = Handle
type ChannelName = String
...

Haskell Don't like that explicit 0 ...

by Macha, September 22, 2010 20:16, 2 refactorings, tagged with haskell

Well, the title says it all...

55502f40dc8b7c769880b10874abc9d0 Talk
module Main where

import Graphics.UI.Gtk
...

Haskell Haskell walpaper slide

by https://me.yahoo.com/a/qdKngNhttsa6hMTIgvidvwP6cBSbEMaU6J9FYay5lNJXMn9X, August 03, 2010 17:04, No refactoring

The user gives minutes and ...

55502f40dc8b7c769880b10874abc9d0 Talk
module Main where

import Text.XML.HaXml
...

Haskell Code from a novice Haskell ...

by jaewon.mp, February 03, 2010 10:21, No refactoring, tagged with xml, haskell, HaXml

It's a simple command-line ...

2f9c571c7d57b6e2170eae9a372e24b8 Talk
class IsComplex a where
    isComplex :: a -> Bool

...

Haskell Function to check the data ...

by headcrab.myopenid.com, December 08, 2009 18:03, 2 refactorings, tagged with types, polymorphism

For two given data types, S...

25c35e90595b236da0fee29edb70db7f Talk
import Control.Monad (mapM_, liftM)
import Data.List (sort)
import qualified Data.ByteString.Lazy.Char8 as L
...

Haskell radixSort algorithm

by roman, November 07, 2009 09:29, 6 refactorings, tagged with haskell radixSort

I'm trying to implement a s...

8d8978eba1922a74b91c4b361c7706cc Talk
compress :: [Int] -> [[Int]]
compress (x:xs) = let (y,ys) = walk x xs
                  in [x,y]:compress ys
...

Haskell compressing an array of int...

by sargon, April 15, 2009 16:52, 6 refactorings, tagged with short

I took the idea from "Alec ...

55ca8e1248605bf5e1819ce2c47c160f Talk
---
--- Tag
...

Haskell Tag

by Tj Holowaychuk, April 13, 2009 01:03, 3 refactorings, tagged with html tags

Just playing around, super ...

F1e3ab214a976a39cfd713bc93deb10f Talk
import Prelude hiding (lookup)
import System.Random
import Control.Monad
...

Haskell Pseudo Genetic Programming

by Jason Dew, February 02, 2009 19:06, No refactoring, tagged with ai

This code probably needs cl...

D16d53391068ff0830269149b060789d 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
import System.IO
import Data.Word
...

Haskell Raytracer in haskell

by jaggederest, September 01, 2008 21:23, 1 refactoring, tagged with vector, haskell, raytracer, linear algebra

This is my first serious ha...

69c54cc530fa953e144771c03eccc5a9 Talk