git.iko.soy/typeable/postgresql-simple
on master help sign in
Uncomment Result instance for Maybe types
commit153ef4607edcdf73c1e2266572e17032da37ed4e authorLeon P Smith <leon@melding-monads.com> dateSun 25 Dec 2011, 22:41 (15 years ago) parent2318f2b
1 file changed+2−2
src/Database/PostgreSQL/Simple/Result.hs+2−2
src/Database/PostgreSQL/Simple/Result.hs+2−2
@@ -92,11 +92,11 @@ class Result a where
9292 -- Returns an exception if the conversion fails. In the case of
9393 -- library instances, this will usually be a 'ResultError', but may
9494 -- be a 'UnicodeException'.
95−{--
95+
9696instance (Result a) => Result (Maybe a) where
9797 convert _ Nothing = pure Nothing
9898 convert f bs = Just <$> convert f bs
99−
99+{--
100100instance Result Bool where
101101 convert = atto ok8 ((/=(0::Int)) <$> decimal)
102102