rfc-0.0.0.12: Robert Fischer's Common library

Safe HaskellNone
LanguageHaskell2010

RFC.Data.IdAnd

Synopsis

Documentation

newtype IdAnd a Source #

Represents something which has an ID.

Constructors

IdAnd (UUID, a) 

Instances

Eq a => Eq (IdAnd a) Source # 

Methods

(==) :: IdAnd a -> IdAnd a -> Bool #

(/=) :: IdAnd a -> IdAnd a -> Bool #

Ord a => Ord (IdAnd a) Source # 

Methods

compare :: IdAnd a -> IdAnd a -> Ordering #

(<) :: IdAnd a -> IdAnd a -> Bool #

(<=) :: IdAnd a -> IdAnd a -> Bool #

(>) :: IdAnd a -> IdAnd a -> Bool #

(>=) :: IdAnd a -> IdAnd a -> Bool #

max :: IdAnd a -> IdAnd a -> IdAnd a #

min :: IdAnd a -> IdAnd a -> IdAnd a #

Show a => Show (IdAnd a) Source # 

Methods

showsPrec :: Int -> IdAnd a -> ShowS #

show :: IdAnd a -> String #

showList :: [IdAnd a] -> ShowS #

Generic (IdAnd a) Source # 

Associated Types

type Rep (IdAnd a) :: * -> * #

Methods

from :: IdAnd a -> Rep (IdAnd a) x #

to :: Rep (IdAnd a) x -> IdAnd a #

ToJSON a => ToJSON (IdAnd a) Source # 
FromJSON a => FromJSON (IdAnd a) Source # 
FromRow a => FromRow (IdAnd a) Source # 

Methods

fromRow :: RowParser (IdAnd a) #

ToRow a => ToRow (IdAnd a) Source # 

Methods

toRow :: IdAnd a -> [Action] #

type Rep (IdAnd a) Source # 
type Rep (IdAnd a) = D1 * (MetaData "IdAnd" "RFC.Data.IdAnd" "rfc-0.0.0.12-6RKkwxmJGJX2g2V811ktEg" True) (C1 * (MetaCons "IdAnd" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (UUID, a))))