git.iko.soy/typeable/postgresql-simple
on master help sign in
Derive FromJSON and ToJSON instances for Aeson.
commite75145b6cdf725d3b2d6b0316bc1726079d1d164 authorNick <nick@typeable.io> dateTue 30 Jan 2024, 16:51 (3 years ago) parent72dcaec
1 file changed+2−1
src/Database/PostgreSQL/Simple/Newtypes.hs+2−1
src/Database/PostgreSQL/Simple/Newtypes.hs+2−1
@@ -1,5 +1,6 @@
11{-# LANGUAGE DeriveFunctor #-}
22{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE GeneralisedNewtypeDeriving #-}
34-- | Module with newtypes suitable to usage with @DerivingVia@ or standalone.
45--
56-- The newtypes are named after packages they wrap.
@@ -37,7 +38,7 @@ import qualified Data.Aeson as Aeson
3738--
3839-- @since 0.6.3
3940newtype Aeson a = Aeson a
40− deriving (Eq, Ord, Show, Read, Typeable, Functor)
41+ deriving (Eq, Ord, Show, Read, Typeable, Functor, Aeson.FromJSON, Aeson.ToJSON)
4142
4243getAeson :: Aeson a -> a
4344getAeson (Aeson a) = a