on dev help sign in
added doctest
commit44e68f87c73f258b3b7ab3c97f8c57317deb757e authoriko <ilyakooo0@gmail.com> dateSat 19 Oct 2019, 00:53 (7 years ago) parent9012d25
1 file changed+5−2
squeal-postgresql/src/Squeal/PostgreSQL/Definition.hs+5−2
squeal-postgresql/src/Squeal/PostgreSQL/Definition.hs+5−2
@@ -97,8 +97,11 @@ instance PGTyped schemas ('NotNull ty) => PGNullityTyped schemas ('NotNull ty) w
9797 pgNullityType = notNullable (pgtype @_ @('NotNull ty))
9898
9999-- | Allow you to specify pg column types in relation to haskell types.
100−-- | >>> hask @(Maybe String) ~ nullable text
101−-- | >>> hask @String ~ notNullable text
100+-- >>> printSQL $ hask @(Maybe String)
101+-- text NULL
102+--
103+-- >>> printSQL $ hask @Double
104+-- float8 NOT NULL
102105hask
103106 :: forall h schemas. PGNullityTyped schemas (NullPG h)
104107 => ColumnTypeExpression schemas ('NoDef :=> NullPG h)