Add ToField and ToParamList modules, fix warning in spec

This commit is contained in:
Paul Brinkmeier 2024-04-11 18:32:16 +02:00
parent e68bc65576
commit 3a5488c89d
2 changed files with 3 additions and 1 deletions

View File

@ -62,10 +62,12 @@ library
exposed-modules: exposed-modules:
Database.PostgreSQL.Opium, Database.PostgreSQL.Opium,
Database.PostgreSQL.Opium.FromField, Database.PostgreSQL.Opium.FromField,
Database.PostgreSQL.Opium.ToField
-- Modules included in this library but not exported. -- Modules included in this library but not exported.
other-modules: other-modules:
Database.PostgreSQL.Opium.Error, Database.PostgreSQL.Opium.Error,
Database.PostgreSQL.Opium.ToParamList,
Database.PostgreSQL.Opium.Oid Database.PostgreSQL.Opium.Oid
-- LANGUAGE extensions used by modules in this package. -- LANGUAGE extensions used by modules in this package.

View File

@ -47,7 +47,7 @@ data ScoreByAge = ScoreByAge
instance Opium.FromRow ScoreByAge where instance Opium.FromRow ScoreByAge where
data Only a = Only newtype Only a = Only
{ only :: a { only :: a
} deriving (Eq, Generic, Show) } deriving (Eq, Generic, Show)