Skip to content

Commit

Permalink
Import module to use env
Browse files Browse the repository at this point in the history
  • Loading branch information
amitaibu authored Oct 23, 2023
1 parent 747d90c commit 1a29d72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Guide/config.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ The recommended way is to declare a custom `newtype` in `Config/Config.hs` like
```haskell
-- Config.hs

Import IHP.EnvVar

newtype StripePublicKey = StripePublicKey Text
```

Expand All @@ -24,6 +26,8 @@ We want our new config parameter to be filled from a `STRIPE_PUBLIC_KEY` env var
```haskell
module Config where

Import IHP.EnvVar

newtype StripePublicKey = StripePublicKey Text

config :: ConfigBuilder
Expand Down

0 comments on commit 1a29d72

Please sign in to comment.