Skip to content

Instantly share code, notes, and snippets.

@joefiorini
Last active June 22, 2017 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joefiorini/3c97926baf2b532ac4b7f01bd90ef8e5 to your computer and use it in GitHub Desktop.
Save joefiorini/3c97926baf2b532ac4b7f01bd90ef8e5 to your computer and use it in GitHub Desktop.
module Command
open ServiceA
open ServiceB
let run params =
// How do I refer to the ServiceConfig modules in here?
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
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