thus halting. which sucks because I don't want to have to do two api calls to check every id first, and I want to run it overnight
-
-
-
so I'm like, ok, read about Control.Monad.Catch, cool I'll just catchAll with (\_ -> pure ()) whatever who cares
-
except now it doesn't typecheck (and what exactly was happening confused me for awhile because the library's signatures are weird and...
-
...because I'd been lazy with annotations so unification was failing in some random-ass place)
-
but it's simple! on success the thing is supposed to return a status object! so if you're wrapping with a catch that's what must come out
-
...sooo naturally I just fetch a status when the program starts and hold onto it to return from the handler every time it fails. as you do
End of conversation
New conversation -
-
-
I hate libs that throw on non-2xx. It's part of the protocol, not an exception!
-
ya it actually consumes the Either from its underlying library to do this rather than just returning it as is :(
End of conversation
New conversation -
-
-
this has since been changed in http-client, which I'm happy about /cc
@michaelneale -
*eyes twitch* *1000 yard stare*
-
we waited for you to leave before fixing it
-
it actually was an important lesson for me. I just like remembering it fondly.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.