Kleidukos/servant-effectful

Document unlifting strategy

TristanCacqueray opened this issue · 0 comments

It seems like we need to use withUnliftStrategy (ConcUnlift Ephemeral Unlimited) to avoid this error:

If you want to use the unlifting function to run Eff computations in multiple threads, have a look at UnliftStrategy (ConcUnlift).
CallStack (from HasCallStack):
  error, called at src/Effectful/Internal/Unlift.hs:110:12 in effectful-core-2.1.0.0

Shouldn't the runWarpServer takes care of that?