wire-api-0.1.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Wire.API.User.Phone

Synopsis

Documentation

newtype Phone Source #

Constructors

Phone 

Fields

Instances

Instances details
Arbitrary Phone Source # 
Instance details

Defined in Wire.API.User.Phone

FromJSON Phone Source # 
Instance details

Defined in Wire.API.User.Phone

ToJSON Phone Source # 
Instance details

Defined in Wire.API.User.Phone

Generic Phone Source # 
Instance details

Defined in Wire.API.User.Phone

Associated Types

type Rep Phone :: Type -> Type #

Methods

from :: Phone -> Rep Phone x #

to :: Rep Phone x -> Phone #

Show Phone Source # 
Instance details

Defined in Wire.API.User.Phone

Methods

showsPrec :: Int -> Phone -> ShowS #

show :: Phone -> String #

showList :: [Phone] -> ShowS #

FromByteString Phone Source # 
Instance details

Defined in Wire.API.User.Phone

Methods

parser :: Parser Phone Source #

ToByteString Phone Source # 
Instance details

Defined in Wire.API.User.Phone

Cql Phone Source # 
Instance details

Defined in Wire.API.User.Phone

Eq Phone Source # 
Instance details

Defined in Wire.API.User.Phone

Methods

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

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

Ord Phone Source # 
Instance details

Defined in Wire.API.User.Phone

Methods

compare :: Phone -> Phone -> Ordering #

(<) :: Phone -> Phone -> Bool #

(<=) :: Phone -> Phone -> Bool #

(>) :: Phone -> Phone -> Bool #

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

max :: Phone -> Phone -> Phone #

min :: Phone -> Phone -> Phone #

FromHttpApiData Phone Source # 
Instance details

Defined in Wire.API.User.Phone

ToHttpApiData Phone Source # 
Instance details

Defined in Wire.API.User.Phone

ToParamSchema Phone Source # 
Instance details

Defined in Wire.API.User.Phone

ToSchema Phone Source # 
Instance details

Defined in Wire.API.User.Phone

ToSchema Phone Source # 
Instance details

Defined in Wire.API.User.Phone

type Rep Phone Source # 
Instance details

Defined in Wire.API.User.Phone

type Rep Phone = D1 ('MetaData "Phone" "Wire.API.User.Phone" "wire-api-0.1.0-EbZS9CKNOfZ8BBy5DRJfXi" 'True) (C1 ('MetaCons "Phone" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromPhone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

parsePhone :: Text -> Maybe Phone Source #

Parses a phone number in E.164 format with a mandatory leading +.

isValidPhone :: Text -> Bool Source #

Checks whether a phone number is valid, i.e. it is in E.164 format with a mandatory leading + followed by 10-15 digits.