Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a couple of it's -> its #1072

Merged
merged 1 commit into from
Sep 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Guide/file-storage.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ After that run `make -B .envrc` and restart your development server.

#### Jpegs

To store an image as a jpeg and reduce it's quality use this:
To store an image as a jpeg and reduce its quality use this:

```haskell
let uploadLogo = uploadToStorageWithOptions $ def
Expand All @@ -289,7 +289,7 @@ The browser uses the [`Content-Disposition`](https://developer.mozilla.org/en-US

By default no `Content-Disposition` header is set.

If you use the S3 Storage you can use the `contentDispositionAttachmentAndFileName` function to mark a file as an attachment and use it's original provided file name as the downloaded file name:
If you use the S3 Storage you can use the `contentDispositionAttachmentAndFileName` function to mark a file as an attachment and use its original provided file name as the downloaded file name:

```haskell
let uploadAttachment = uploadToStorageWithOptions $ def
Expand Down
6 changes: 3 additions & 3 deletions Guide/jobs.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ In development mode, these watchers are started with the dev server. In producti

### Viewing job status

A benefit of jobs compared to just running scripts is info about the jobs is stored persistently in the database. To see the status of a job, inspect it's `#status` field. If the job failed, you can see the error that caused it to fail in the field `#lastError`.
A benefit of jobs compared to just running scripts is info about the jobs is stored persistently in the database. To see the status of a job, inspect its `#status` field. If the job failed, you can see the error that caused it to fail in the field `#lastError`.

### Configuring jobs

Expand All @@ -77,7 +77,7 @@ instance Job EmailCustomersJob where
forEach customers sendToCustomer
where
sendToCustomer customer = sendMail (MarketingMail customer)

maxAttempts = 3
```

Expand All @@ -92,7 +92,7 @@ instance Job EmailCustomersJob where
forEach customers sendToCustomer
where
sendToCustomer customer = sendMail (MarketingMail customer)

timeoutInMicroseconds = Just $ 1000000 * 60
```

Expand Down
6 changes: 3 additions & 3 deletions IHP/Controller/Context.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import IHP.Log.Types
--
-- >>> let (CurrentLayout layout) = fromFrozenContext in ...
--
-- The context is initially created before a action is going to be executed. It's life cycle looks like this:
-- The context is initially created before a action is going to be executed. Its life cycle looks like this:
--
-- - @newControllerContext@: The new controller context is created
-- - The 'IHP.ControllerSupport.runActionWithNewContext' fills in a few default values: The current @?application@ and also the Flash Messages to be rendered in the to-be-generated response.
Expand All @@ -56,7 +56,7 @@ newControllerContext = do
pure ControllerContext { requestContext = ?requestContext, customFieldsRef }
{-# INLINABLE newControllerContext #-}

-- | After freezing a container you can access it's values from pure non-IO code by using 'fromFronzenContext'
-- | After freezing a container you can access its values from pure non-IO code by using 'fromFronzenContext'
--
-- Calls to 'putContext' will throw an exception after it's frozen.
freeze :: ControllerContext -> IO ControllerContext
Expand Down Expand Up @@ -138,4 +138,4 @@ instance ConfigProvider ControllerContext where
{-# INLINABLE getFrameworkConfig #-}

instance LoggingProvider ControllerContext where
getLogger = getLogger . getFrameworkConfig
getLogger = getLogger . getFrameworkConfig
4 changes: 2 additions & 2 deletions exe/IHP/IDE/DevServer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ main = do

logger <- Log.newLogger def
let ?context = Context { actionVar, portConfig, appStateRef, isDebugMode, logger }

-- Print IHP Version when in debug mode
when isDebugMode (Log.debug ("IHP Version: " <> Version.ihpVersion))

Expand Down Expand Up @@ -253,7 +253,7 @@ ensureUserIsNotRoot = do
startAppGHCI :: (?context :: Context) => IO ()
startAppGHCI = do
let isDebugMode = ?context |> get #isDebugMode
-- The app is using the `PORT` env variable for it's web server
-- The app is using the `PORT` env variable for its web server
let appPort :: Int = ?context
|> get #portConfig
|> get #appPort
Expand Down