You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'
.
Consider something like:
open System | |
open Microsoft.AspNetCore.Builder | |
open Microsoft.Extensions.Hosting | |
open Microsoft.AspNetCore.Http | |
open System.Threading.Tasks | |
let mapGet (pattern : string) handler (app : WebApplication) = | |
app.MapGet(pattern, (Func<_>(handler))) |> ignore | |
let mapGetAsync (pattern : string) (handler : HttpContext -> Task) (app : WebApplication) = |
module ConsoleTracer | |
open System | |
open Fable.Core | |
// Use it when initializing your Elmish app like this | |
//|> Program.withTrace ConsoleTracer.withTrace | |
let getMsgNameAndFields (t: Type) (x: 'Msg): string * obj = | |
let rec getCaseName (t: Type) (acc: string list) (x: obj) = |