-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from clementd-fretlink/polykinds
Migrate to dhall 1.26.1 and merge types and terms
- Loading branch information
Showing
11 changed files
with
46 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
let Addon = < Postgresql : { name : Text, env_prefix : Text } > | ||
|
||
let postgresql = | ||
Addon.Postgresql { name = "pg", env_prefix = "POSTGRESQL_ADDON" } | ||
|
||
in { Type = Addon, postgresql = postgresql } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,38 @@ | ||
let Addon = ./addon/Addon.dhall | ||
let Addon = (./Addon.dhall).Type | ||
|
||
in λ(Environment : Type) | ||
→ { clever_app : | ||
Text | ||
, clever_orga : | ||
Text | ||
, clever_secret : | ||
Text | ||
, clever_token : | ||
Text | ||
, clever_syslog_server : | ||
Optional Text | ||
, clever_domain : | ||
Optional Text | ||
, clever_app_tasks_file : | ||
Optional Text | ||
, clever_haskell_entry_point : | ||
Optional Text | ||
, clever_disable_metrics : | ||
Bool | ||
, clever_addons : | ||
List Addon | ||
, clever_env : | ||
Environment | ||
} | ||
let Vault = ./Vault.dhall | ||
|
||
let Config = | ||
λ(Environment : Type) | ||
→ { clever_app : Text | ||
, clever_orga : Text | ||
, clever_secret : Text | ||
, clever_token : Text | ||
, clever_syslog_server : Optional Text | ||
, clever_domain : Optional Text | ||
, clever_app_tasks_file : Optional Text | ||
, clever_haskell_entry_point : Optional Text | ||
, clever_disable_metrics : Bool | ||
, clever_addons : List Addon | ||
, clever_env : Environment | ||
} | ||
|
||
let mkConfig = | ||
λ(vault : Vault) | ||
→ λ(app : Text) | ||
→ λ(organization : Text) | ||
→ { clever_app = app | ||
, clever_orga = organization | ||
, clever_secret = vault.secret | ||
, clever_token = vault.token | ||
, clever_syslog_server = None Text | ||
, clever_domain = None Text | ||
, clever_app_tasks_file = None Text | ||
, clever_haskell_entry_point = None Text | ||
, clever_disable_metrics = False | ||
, clever_addons = [] : List Addon | ||
, clever_env = {=} | ||
} | ||
: Config {} | ||
|
||
in { Type = Config, mkConfig = mkConfig } |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ Addon = ./Addon.dhall, Config = ./Config.dhall, Vault = ./Vault.dhall } |
This file was deleted.
Oops, something went wrong.