lexi-lambda / freer-simple

A friendly effect system for Haskell
https://hackage.haskell.org/package/freer-simple
BSD 3-Clause "New" or "Revised" License
227 stars 19 forks source link

Simpler example of pure interpreter #22

Open jml opened 5 years ago

jml commented 5 years ago

There's a lot going on in runConsolePure. Although it could be educational, I think you have to understand a fair bit more to know what's going on.

Can you please provide an example of a "pure" interpreter that doesn't involve any other effects? One that's just a function?