In order to create a server, you must use the `runSwaggerPetstoreServer` function. However, you unlike the client, in which case you *got* a `SwaggerPetstoreBackend`
from the library, you must instead *provide* a `SwaggerPetstoreBackend`. For example, if you have defined handler functions for all the
functions in `SwaggerPetstore.Handlers`, you can write:
```haskell
{-# LANGUAGE RecordWildCards #-}
import SwaggerPetstore.API
-- A module you wrote yourself, containing all handlers needed for the SwaggerPetstoreBackend type.
import SwaggerPetstore.Handlers
-- Run a SwaggerPetstore server on localhost:8080
main :: IO ()
main = do
let server = SwaggerPetstoreBackend{..}
runSwaggerPetstoreServer (ServerConfig "localhost" 8080) server
```
You could use `optparse-applicative` or a similar library to read the host and port from command-line arguments: