Safe Haskell | None |
---|---|
Language | Haskell2010 |
Generate fake US addresses.
- fakeAddress :: FGen Text
- fakeStreet :: FGen Text
- fakeStreetName :: FGen Text
- fakeState :: FGen UsState
- fakeCityInState :: UsState -> FGen Text
- fakeZipInState :: UsState -> FGen Text
- fakeStreetSuffix :: FGen Text
- data UsState
- = Alabama
- | Alaska
- | Arizona
- | Arkansas
- | California
- | Colorado
- | Connecticut
- | Delaware
- | Florida
- | Georgia
- | Hawaii
- | Idaho
- | Illinois
- | Indiana
- | Iowa
- | Kansas
- | Kentucky
- | Louisiana
- | Maine
- | Maryland
- | Massachusetts
- | Michigan
- | Minnesota
- | Mississippi
- | Missouri
- | Montana
- | Nebraska
- | Nevada
- | NewHampshire
- | NewJersey
- | NewMexico
- | NewYork
- | NorthCarolina
- | NorthDakota
- | Ohio
- | Oklahoma
- | Oregon
- | Pennsylvania
- | RhodeIsland
- | SouthCarolina
- | SouthDakota
- | Tennessee
- | Texas
- | Utah
- | Vermont
- | Virginia
- | Washington
- | WestVirginia
- | Wisconsin
- | Wyoming
- stateAbbreviation :: UsState -> Text
- stateZipFormat :: UsState -> NumberScheme
- usCities :: Map UsState [Text]
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.
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.
Enumeration of the fifty US states.
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.