purescript-checked-exceptions icon indicating copy to clipboard operation
purescript-checked-exceptions copied to clipboard

Tiny typo in README's `getPureScriptSafe` type signature

Open and-pete opened this issue 4 years ago • 0 comments

Hi Nate,

There's the tiniest of tiny typos in the README example (I think). I found it when throwing the code into TryPureScript.

In the final function:

getPureScriptSafe
  :: forall m
   . MonadHttp m
  => MonadFs m
  => MonadLog m
  -> m Unit                   -- HERE: Should be `=> m Unit` and not `-> m Unit`
getPureScriptSafe = ...

It throws an error that MonadLog is an unknown type (...instead of the unknown class it should throw, heh).

and-pete avatar Jul 16 '20 09:07 and-pete