| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Rel8.Internal.Type.JSONEncoded
Synopsis
- newtype JSONEncoded a = JSONEncoded {
- fromJSONEncoded :: a
Documentation
newtype JSONEncoded a Source #
A deriving-via helper type for column types that store a Haskell value
using a JSON encoding described by aeson's ToJSON and FromJSON type
classes.
Constructors
| JSONEncoded | |
Fields
| |
Instances
| Eq a => Eq (JSONEncoded a) Source # | |
Defined in Rel8.Internal.Type.JSONEncoded Methods (==) :: JSONEncoded a -> JSONEncoded a -> Bool # (/=) :: JSONEncoded a -> JSONEncoded a -> Bool # | |
| Ord a => Ord (JSONEncoded a) Source # | |
Defined in Rel8.Internal.Type.JSONEncoded Methods compare :: JSONEncoded a -> JSONEncoded a -> Ordering # (<) :: JSONEncoded a -> JSONEncoded a -> Bool # (<=) :: JSONEncoded a -> JSONEncoded a -> Bool # (>) :: JSONEncoded a -> JSONEncoded a -> Bool # (>=) :: JSONEncoded a -> JSONEncoded a -> Bool # max :: JSONEncoded a -> JSONEncoded a -> JSONEncoded a # min :: JSONEncoded a -> JSONEncoded a -> JSONEncoded a # | |
| Show a => Show (JSONEncoded a) Source # | |
Defined in Rel8.Internal.Type.JSONEncoded Methods showsPrec :: Int -> JSONEncoded a -> ShowS # show :: JSONEncoded a -> String # showList :: [JSONEncoded a] -> ShowS # | |
| (FromJSON a, ToJSON a) => DBType (JSONEncoded a) Source # | |
Defined in Rel8.Internal.Type.JSONEncoded Methods | |