Copyright | (c) Soostone Inc 2022 |
---|---|
License | AllRightsReserved |
Maintainer | Ozgun Ataman |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Rewrite AST by translatiting unsupported syntax features with specific features available on Sqlite backend (e.g. struct and array are emulated with json)
Documentation
polyfillData :: forall a. Data a => a -> a #
polyfill
replaces struct/array syntax with almost isomorphic JSON functions,
though watch out precision loss in case of handling floating point numbers.
polyfillSExp :: SExp -> SExp #
polyfillVal :: Value -> Either SExp Value #
polyfillVal
, in case of value requiring emulation, upgrades Value type to SExp