Skip to content

Instantly share code, notes, and snippets.

@joefiorini joefiorini/Command.fs
Last active Jun 22, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.