whatisgithub

What is yesod-postgres?

psibi/yesod-postgres — explained in plain English

Analysis updated 2026-07-11 · repo last pushed 2018-08-24

4HaskellAudience · developerComplexity · 3/5DormantSetup · moderate

In one sentence

A starter template that wires up the Haskell Yesod web framework to a PostgreSQL database so developers can launch a web app quickly without building database integration from scratch.

Mindmap

mindmap
  root((repo))
    What it does
      Scaffolds web app
      Connects Postgres
      Auto-recompiles on change
    Tech stack
      Haskell
      Yesod framework
      PostgreSQL
      Stack build tool
    Use cases
      Learn Haskell web dev
      Safe production starting point
      Rapid prototyping
    Audience
      Haskell developers
      Safety-focused teams
    Setup
      Install Postgres first
      Stack builds dependencies
      One command runs server
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Build a web app in Haskell with a database already wired up.

USE CASE 2

Learn how Yesod connects to PostgreSQL without starting from scratch.

USE CASE 3

Prototype a type-safe web service with instant recompilation on code changes.

What is it built with?

HaskellYesodPostgreSQLStack

How does it compare?

psibi/yesod-postgrespsibi/odbc-issue-49bobymicroby/boby-alga-toolkit
Stars41
LanguageHaskellHaskellHaskell
Last pushed2018-08-242022-04-262021-02-10
MaintenanceDormantDormantDormant
Setup difficultymoderatemoderateeasy
Complexity3/51/52/5
Audiencedeveloperdeveloperpm founder

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires a local PostgreSQL database plus the Haskell Stack build tool installed before the app can compile and run.

The README does not mention a license, so it is unclear what permissions you have to use, modify, or distribute this code.

So what is it?

This project is a starter template for building a web application using the Haskell programming language. Specifically, it shows how to wire up a web framework called Yesod to a PostgreSQL database. Instead of starting from scratch, a developer can use this pre-configured setup to get a working web server up and running quickly, complete with a database connection ready to store information. The code provides the basic scaffolding for a web app. To get it running, a developer first sets up a PostgreSQL database on their computer and then uses a Haskell tool called Stack to download dependencies and compile the application. Once set up, running a single command starts a local development server. One handy feature is that as the developer makes changes to the code, the server automatically recompiles and updates the site on the fly, so they can see their changes immediately in a web browser. This would be useful for a developer who wants to learn how to build a web app in Haskell, a language not typically associated with web development. It is also a good fit for teams already committed to using Haskell for its strong safety guarantees, meaning the compiler catches many bugs before the software ever runs, who want a proven starting point rather than building a database integration from scratch. The README doesn't go into much detail about what the final web application actually does, as it is primarily focused on the setup and tooling. It is clearly aimed at people who already have some familiarity with Haskell tooling or are willing to consult the external guides and documentation the README links to. The project leans heavily into the broader Haskell ecosystem, relying on community resources like the Yesod Book and chat channels for troubleshooting and learning.

Copy-paste prompts

Prompt 1
Set up the yesod-postgres template on my machine: I have PostgreSQL installed and Stack ready. Walk me through cloning the repo, configuring the database connection, and starting the dev server step by step.
Prompt 2
I cloned the yesod-postgres starter. How do I add a new database table and a simple web route that reads from it? Show the Yesod model definition and handler code I need to add.
Prompt 3
Help me configure the yesod-postgres project so that the auto-recompilation feature works and I can see code changes live in my browser without manually restarting the server.
Prompt 4
Explain the project structure of the yesod-postgres template: what each folder does, where database settings live, and where I should put new routes and handlers.

Frequently asked questions

What is yesod-postgres?

A starter template that wires up the Haskell Yesod web framework to a PostgreSQL database so developers can launch a web app quickly without building database integration from scratch.

What language is yesod-postgres written in?

Mainly Haskell. The stack also includes Haskell, Yesod, PostgreSQL.

Is yesod-postgres actively maintained?

Dormant — no commits in 2+ years (last push 2018-08-24).

What license does yesod-postgres use?

The README does not mention a license, so it is unclear what permissions you have to use, modify, or distribute this code.

How hard is yesod-postgres to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is yesod-postgres for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.