Flake & cabal setup

This commit is contained in:
Paul Brinkmeier
2025-07-15 18:50:56 +02:00
commit fda4e7530c
11 changed files with 324 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
{-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import Database.PostgreSQL.LibPQ (connectdb)
import qualified Yore.DB
main :: IO ()
main = do
conn <- connectdb "host=localhost port=5432"
result <- Yore.DB.getTables conn
case result of
Left e ->
putStrLn $ "Got error: " ++ show e
Right rows ->
mapM_ print rows