This is a PureScript FFI provider mirror for the Python backend.
Making such a mirror is simple, by implementing following interfaces:
- Providing an
entry.pyin the Git repo's root. - In
entry.py, provide a functionsolve(package_name: str, versions: List[int]) -> str,
which takes
-
the name of package.
e.g., forpurescript-prelude, you'll receiveprelude. -
the version parts
e.g., for
v1.1.1, you'll get[1, 1, 1].
and return
-
a URL of a Git repo providing the Python FFI files.
e.g., for purescript-console, we can make this purescript-console.py for former's Python FFI files).
pspy --update will automatically synchronize the mirror you selected in pure-py.json.
e.g., for purescript-console, we can make this purescript-console.py for former's Python FFI files).
Fork this repo, and git clone <your-own-mirror-repo> ~/.pspy/mirrors/test,
and change index-mirror of your ps-pure.py to test:
{
"corefn-dir": /* your setting */,
"data-format": /* your setting */,
"entry-module": /* your setting */,
"index-mirror": "test",
"pspy-blueprint": /* your setting */
}