3 ms·
At some point you would need to see the results of the rules applied, thus, you'd need IO.
by actionfromafar 3y ago
At some point you would need to see the results of the rules applied, thus, you'd need IO.
- curryhoward 3y agoThe suggestion is to use pure Haskell for the rules DSL only. The surrounding system that applies any side effects would presumably not be written in that language. It's a good idea, and Facebook actually does something like this for their spam filtering rules: https://engineering.fb.com/2015/06/26/security/fighting-spam-with-haskell/ https://engineering.fb.com/2015/06/26/security/fighting-spam...
- daxfohl 3y agoLooks like it has become abandonware, or at least the component they open sourced. Oh well, such is life in the Haskell ecosystem. https://github.com/facebook/Haxl https://github.com/facebook/Haxl