Last active
June 22, 2017 13:47
-
-
Save joefiorini/3c97926baf2b532ac4b7f01bd90ef8e5 to your computer and use it in GitHub Desktop.
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
module Command | |
open ServiceA | |
open ServiceB | |
let run params = | |
// How do I refer to the ServiceConfig modules in here? |
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
namespace ServiceA | |
type ServiceConfig = | |
{ ApiKey: string | |
Host: string | |
} | |
module ServiceConfig = | |
let create apiKey host = | |
{ ApiKey = apiKey | |
Host = host | |
} | |
module DoSomething = | |
let makeRequest serviceConfig params = | |
// Make a call to ServiceA |
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
namespace ServiceB | |
type ServiceConfig = | |
{ ClientId: string | |
Secret: string | |
Host: string | |
} | |
module ServiceConfig = | |
let create clientId secret host = | |
{ ClientId = clientId | |
Secret = secret | |
Host = host | |
} | |
module DoSomethingElse = | |
let makeRequest serviceConfig params = | |
// Make a call to ServiceA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment