soccer-table: Create League Tables from Soccer Game Results

[ library, mit, program, utilities ] [ Propose Tags ] [ Report a vulnerability ]

The soccer-table program processes a directory of text files containing soccer game results. This directory is given as a command line argument. Each of the files must contain lines of the following form:

HOME-TEAM HOME-GOALS:AWAY-GOALS AWAY-TEAM

For example:

Manchaster City 0:0 Sunderland Arsenal 0:3 Fulham Manchester United 1:0 Crystal Palace

A league table is generated from those results and printed to the screen.


[Skip to Readme]

Modules

  • Formatting
  • SoccerTable

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Dependencies base (>=4.19.0.0 && <4.20), containers (>=0.6.0 && <0.7), directory (>=1.3.0.0 && <1.4), extra (>=1.8.0 && <1.9), regex-base (>=0.94.0.0 && <0.95), regex-posix (>=0.96.0.0 && <0.97), soccer-table, split (>=0.2.0 && <0.3) [details]
License MIT
Author Patrick Bucher
Maintainer patrick.bucher@mailbox.org
Uploaded by patrickbucher at 2026-05-12T10:27:01Z
Category utilities
Source repo head: git clone https://github.com/patrickbucher/soccer-table-haskell
Distributions
Executables soccer-table
Downloads 1 total (1 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2026-05-12 [all 2 reports]

Readme for soccer-table-0.1.0.0

[back to package description]

Soccer Table

Calculate soccer tables from game results.

Generate Random Results

Clone the repository patrickbucher/random-soccer-results:

git clone https://github.com/patrickbucher/random-soccer-results.git

Create a folder for textual output:

mkdir results-25-26

Generate random soccer results:

python3 generate-results.py TEXT teams-25-26 results-25-26

Generate Soccer Table

Run the program for a specific league:

cabal run soccer-table random-soccer-results/results-25-26/bundesliga

Output:

  # Team                              P  W  T  L  +  -   =
----------------------------------------------------------
  1 TSG 1899 Hoffenheim              62 19  5 10 50 46   4
  2 Eintracht Frankfurt              61 18  7  9 37 24  13
  3 FC Bayern München                60 17  9  8 46 23  23
  4 VfB Stuttgart                    57 17  6 11 61 43  18
  5 RB Leipzig                       57 17  6 11 46 35  11
  6 SC Freiburg                      56 15 11  8 47 29  18
  7 1. FC Heidenheim                 56 14 14  6 36 29   7
  8 Borussia Dortmund                50 13 11 10 52 35  17
  9 Hamburger SV                     45 13  6 15 44 40   4
 10 1. FC Union Berlin               44 13  5 16 40 41  -1
 11 Bayer 04 Leverkusen              44 11 11 12 37 40  -3
 12 SV Werder Bremen                 41  9 14 11 40 40   0
 13 FC Augsburg                      38  9 11 14 27 37 -10
 14 FC St. Pauli                     37 10  7 17 21 42 -21
 15 FSV Mainz 05                     36  8 12 14 31 49 -18
 16 Borussia Mönchengladbach         35 10  5 19 39 54 -15
 17 VfL Wolfsburg                    33  9  6 19 28 43 -15
 18 1. FC Köln                       29  7  8 19 33 65 -32