Anyone knows how I could deal with errors like `Could not deduce (Reflex t0) arising from a use of ‘never’?
I am refactoring a portion of an app, which means a few never
events don't get used, but since they are never
to begin with, I don't care.
Can I make GHC not care somehow as well?
I know about -XExtendedDefaultRules
which likely at least helps to specialize the type from forall t a. Event t a
to forall t. Event t ()
And I want to specialize t
as well to whatever value GHC would accept, since it results in dead code anyway.
Is there something I can write in the default (...)
statement that could work? Or is that similarly impossible to writing default (IO)
to specialize non-fully-specified monads to IO?
Edit: On #reflex-frp @dalaing asked for a code example, and this is what I put together for him: https://gist.github.com/Wizek/d14aada2d75637cb4f424f8a324c7ad7
Section 1 and 2 compile, 3 doesn't. But I want to make 3 compile as well since the compiler is complaining about ambiguity in something that can only be dead code.