packages feed

polysemy-db-0.0.1.0: lib/Polysemy/Db/Data/DbPort.hs

module Polysemy.Db.Data.DbPort where

newtype DbPort =
  DbPort { unDbPort :: Int }
  deriving stock (Eq, Show, Generic)
  deriving newtype (Read, Num, Real, Enum, Integral, Ord)

instance Default DbPort where
  def = 5432

json ''DbPort