[Haskell-cafe] Is it possible to type a function to accept only literal values?

Oleg Grenrus oleg.grenrus at iki.fi
Fri Mar 1 17:27:16 UTC 2024


No, you can opportunistically do processing of your data. That's what 
SAX/SAJ (vs. DOM) parsers allow you to do. Similar approaches are there 
for JSON. simdjson [1] is streaming too, but the interface is different 
from SAX/SAJ.

- Oleg

[1] https://simdjson.github.io/simdjson/md_doc_ondemand_design.html

On 1.3.2024 15.52, Olaf Klinke wrote:
> Is streaming and parallel processing
> incompatible with formats such as XML or JSON,


More information about the Haskell-Cafe mailing list