competition-0.2.0.0: Helpers and runners for code competitions

Safe HaskellSafe-Inferred

Code.Competition

Documentation

class Show a => Solveable p a whereSource

Methods

solve :: p -> aSource

class Parseable p whereSource

runCompetition :: (Solveable p a, Parseable p, Show p) => IO [(p, a)]Source

runSolution :: (Solveable p a, Parseable p, Show p) => String -> IO (String, [(p, a)])Source

runWriteSolution :: (Solveable p a, Parseable p, Show p) => String -> String -> IO (String, [(p, a)])Source