Nhowka / Elmish.Bridge

Create client-server Fable-Elmish apps keeping a single mindset
MIT License
139 stars 17 forks source link

DotnetClient reply channel type not compatible with exn #40

Closed olivercoad closed 2 years ago

olivercoad commented 2 years ago

Trying to use a IReplyChannel<bool> on the DotnetClient, but when using Bridge.AskServer it has a compilation error:

The type 'bool' is not compatible with the type 'exn'

module TestReplyChannels =
    type Msg =
        | Foo of string * IReplyChannel<bool>

    let _ = Bridge.AskServer (fun rc -> Foo("bar", rc))

Does AskServer somehow have an implicit requirement that 'T inherits Exception?