freer-simple icon indicating copy to clipboard operation
freer-simple copied to clipboard

Inline simple effect primitives

Open ilyakooo0 opened this issue 3 years ago • 0 comments

I am wondering if it might make sense to mark the simple effect primitives of the form foo ... = send $ Effect ... like put from State with INLINE pragmas?

https://github.com/lexi-lambda/freer-simple/blob/e5ef0fec4a79585f99c0df8bc9e2e67cc0c0fb4a/src/Control/Monad/Freer/State.hs#L57-L58

Is there a reason this has not already been done? Functions like these seem like prime targets for human-directed inling.

ilyakooo0 avatar Apr 17 '21 16:04 ilyakooo0