Id like to make the signature of foo
a bit better readable
foo :: forall e m. (MonadAff (ajax :: AJAX | e) m) => m (Either Error (AffjaxResponse Json))
What I'd like to do is
type AjaxAff = MonadAff (ajax :: AJAX | e)
foo :: forall m. (AjaxAff m) => m (Either Error (AffjaxResponse Json))
but this gives me
type AjaxAff = MonadAff (ajax :: Affjax.AJAX | e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Unknown type MonadAff
Which I find a bit strange as it doesnt complain about the type MonadAff in the first example