databrary-1: Databrary

Safe HaskellNone
LanguageHaskell2010

Model.Segment

Contents

Documentation

newtype Segment Source #

Constructors

Segment 

Instances

Eq Segment Source # 

Methods

(==) :: Segment -> Segment -> Bool #

(/=) :: Segment -> Segment -> Bool #

Ord Segment Source # 
Read Segment Source # 
Show Segment Source # 
ToJSON Segment Source # 
FromJSON Segment Source # 
PGParameter "segment" Segment Source # 

Methods

pgEncode :: PGTypeName "segment" -> Segment -> PGTextValue #

pgLiteral :: PGTypeName "segment" -> Segment -> ByteString #

pgEncodeValue :: PGTypeEnv -> PGTypeName "segment" -> Segment -> PGValue #

PGColumn "segment" Segment Source # 

Methods

pgDecode :: PGTypeName "segment" -> PGTextValue -> Segment #

pgDecodeBinary :: PGTypeEnv -> PGTypeName "segment" -> PGBinaryValue -> Segment #

pgDecodeValue :: PGTypeEnv -> PGTypeName "segment" -> PGValue -> Segment #

Parameter Text Segment Source # 
Has Segment Slot Source # 

Methods

view :: Slot -> Segment Source #

Has Segment AssetSlot Source # 
Has Segment Excerpt Source # 

Methods

view :: Excerpt -> Segment Source #

Has Segment AssetSegment Source # 
Has Segment RecordSlot Source # 
Deform f Segment Source # 

Methods

deform :: Monad m => DeformT f m Segment Source #

Has (Maybe Segment) AssetSlot Source # 

Orphan instances

PGType "segment" Source # 

Methods

pgTypeName :: PGTypeName "segment" -> String #

pgBinaryColumn :: PGTypeEnv -> PGTypeName "segment" -> Bool #

PGType "segment[]" Source # 

Methods

pgTypeName :: PGTypeName "segment[]" -> String #

pgBinaryColumn :: PGTypeEnv -> PGTypeName "segment[]" -> Bool #

PGArrayType "segment[]" "segment" Source # 

Methods

pgArrayElementType :: PGTypeName "segment[]" -> PGTypeName "segment" #

pgArrayDelim :: PGTypeName "segment[]" -> Char #

PGRangeType "segment" "interval" Source # 

Methods

pgRangeElementType :: PGTypeName "segment" -> PGTypeName "interval" #