Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Database/PostgreSQL/Simple/Newtypes.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GeneralisedNewtypeDeriving #-}
-- | Module with newtypes suitable to usage with @DerivingVia@ or standalone.
--
-- The newtypes are named after packages they wrap.
Expand Down Expand Up @@ -37,7 +38,7 @@ import qualified Data.Aeson as Aeson
--
-- @since 0.6.3
newtype Aeson a = Aeson a
deriving (Eq, Show, Read, Typeable, Functor)
deriving (Eq, Ord, Show, Read, Typeable, Functor, Aeson.FromJSON, Aeson.ToJSON)

getAeson :: Aeson a -> a
getAeson (Aeson a) = a
Expand Down