fake-0.1.1.1: Randomly generated fake data

Safe HaskellNone
LanguageHaskell2010

Fake.Provider.Address.EN_US

Description

Generate fake US addresses.

Synopsis

Documentation

fakeAddress :: FGen Text Source #

Generates a fake address.

fakeStreet :: FGen Text Source #

Generates a fake street component consisting of building number, street name, and optional secondary suite or apartment number.

fakeStreetName :: FGen Text Source #

Generates fake street names.

fakeState :: FGen UsState Source #

Generates fake US state.

fakeCityInState :: UsState -> FGen Text Source #

Generates a fake city in a US state. These are generated from a list of actual US cities in each state.

fakeZipInState :: UsState -> FGen Text Source #

Generates a fake zip code in a US state. Generated zip codes should actually be valid for the given state.

fakeStreetSuffix :: FGen Text Source #

Generates a fake street suffix, e.g. road, street, avenue, etc.

data UsState Source #

Enumeration of the fifty US states.

Instances

Bounded UsState Source # 
Enum UsState Source # 
Eq UsState Source # 

Methods

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

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

Ord UsState Source # 
Read UsState Source # 
Show UsState Source # 
Generic UsState Source # 

Associated Types

type Rep UsState :: * -> * #

Methods

from :: UsState -> Rep UsState x #

to :: Rep UsState x -> UsState #

type Rep UsState Source # 
type Rep UsState = D1 * (MetaData "UsState" "Fake.Provider.Address.EN_US" "fake-0.1.1.1-7tnb9AO8kxi6gPHjbKpuP4" False) ((:+:) * ((:+:) * ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "Alabama" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "Alaska" PrefixI False) (U1 *)) (C1 * (MetaCons "Arizona" PrefixI False) (U1 *)))) ((:+:) * (C1 * (MetaCons "Arkansas" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "California" PrefixI False) (U1 *)) (C1 * (MetaCons "Colorado" PrefixI False) (U1 *))))) ((:+:) * ((:+:) * (C1 * (MetaCons "Connecticut" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "Delaware" PrefixI False) (U1 *)) (C1 * (MetaCons "Florida" PrefixI False) (U1 *)))) ((:+:) * (C1 * (MetaCons "Georgia" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "Hawaii" PrefixI False) (U1 *)) (C1 * (MetaCons "Idaho" PrefixI False) (U1 *)))))) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "Illinois" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "Indiana" PrefixI False) (U1 *)) (C1 * (MetaCons "Iowa" PrefixI False) (U1 *)))) ((:+:) * (C1 * (MetaCons "Kansas" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "Kentucky" PrefixI False) (U1 *)) (C1 * (MetaCons "Louisiana" PrefixI False) (U1 *))))) ((:+:) * ((:+:) * (C1 * (MetaCons "Maine" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "Maryland" PrefixI False) (U1 *)) (C1 * (MetaCons "Massachusetts" PrefixI False) (U1 *)))) ((:+:) * ((:+:) * (C1 * (MetaCons "Michigan" PrefixI False) (U1 *)) (C1 * (MetaCons "Minnesota" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "Mississippi" PrefixI False) (U1 *)) (C1 * (MetaCons "Missouri" PrefixI False) (U1 *))))))) ((:+:) * ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "Montana" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "Nebraska" PrefixI False) (U1 *)) (C1 * (MetaCons "Nevada" PrefixI False) (U1 *)))) ((:+:) * (C1 * (MetaCons "NewHampshire" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "NewJersey" PrefixI False) (U1 *)) (C1 * (MetaCons "NewMexico" PrefixI False) (U1 *))))) ((:+:) * ((:+:) * (C1 * (MetaCons "NewYork" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "NorthCarolina" PrefixI False) (U1 *)) (C1 * (MetaCons "NorthDakota" PrefixI False) (U1 *)))) ((:+:) * (C1 * (MetaCons "Ohio" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "Oklahoma" PrefixI False) (U1 *)) (C1 * (MetaCons "Oregon" PrefixI False) (U1 *)))))) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "Pennsylvania" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "RhodeIsland" PrefixI False) (U1 *)) (C1 * (MetaCons "SouthCarolina" PrefixI False) (U1 *)))) ((:+:) * (C1 * (MetaCons "SouthDakota" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "Tennessee" PrefixI False) (U1 *)) (C1 * (MetaCons "Texas" PrefixI False) (U1 *))))) ((:+:) * ((:+:) * (C1 * (MetaCons "Utah" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "Vermont" PrefixI False) (U1 *)) (C1 * (MetaCons "Virginia" PrefixI False) (U1 *)))) ((:+:) * ((:+:) * (C1 * (MetaCons "Washington" PrefixI False) (U1 *)) (C1 * (MetaCons "WestVirginia" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "Wisconsin" PrefixI False) (U1 *)) (C1 * (MetaCons "Wyoming" PrefixI False) (U1 *))))))))

stateAbbreviation :: UsState -> Text Source #

Returns the two-character abbreviation for the given US state.

stateZipFormat :: UsState -> NumberScheme Source #

Returns the two-character abbreviation for the given US state.

usCities :: Map UsState [Text] Source #

Map of actual cities in each US state.