You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cryptol$ git status
git status
On branch functors-merge
Your branch is up to date with 'origin/functors-merge'.
nothing to commit, working tree clean
cryptol$ ./cry build cryptol-remote-api
...
cryptol$ export CRYPTOL_SERVER=$(cabal v2-exec which cryptol-remote-api)
cryptol$ cd examples/SuiteB_FFI
cryptol/examples/SuiteB_FFI$ make
cc -O3 -Wall -Wextra -Werror -march=native -fPIC -shared SuiteB_FFI.c -o SuiteB_FFI.so
cryptol/examples/SuiteB_FFI$ cd ../..
cryptol$ export CRYPTOLPATH=$(pwd)/examples/SuiteB_FFI
cryptol$ cd cryptol-remote-api/python
cryptol/cryptol-remote-api/python$ poetry update
...
cryptol/cryptol-remote-api/python$ poetry shell
...
(...) cryptol/cryptol-remote-api/python$ python3
>>> from pprint import pprint
>>> from cryptol import connect
>>> c = connect(reset_server=True)
>>> x = c.file_deps("SuiteB_FFI", False) # load module
>>> pprint(x.result())
{'fingerprint': 'EAF629FA181D4A780FE070A8129CB555ADAC0902',
'foreign': ['.../cryptol/examples/SuiteB_FFI/SuiteB_FFI.so'],
'imports': ['Cryptol', 'SuiteB'],
'includes': ['.../cryptol/examples/SuiteB_FFI/SuiteB_FFI.so'],
'source': '.../cryptol/examples/SuiteB_FFI/SuiteB_FFI.cry'}
To help with 1 look ahead parsing, type declarations are parsed as types,
which are then post processed into actual declarations. This
helps with #1496, and avoids the ambiguity that previously required
parens in `type constraint (C)`.
I think this stems from Line 69 of
src/CryptolServer/FileDeps.hs
, which callsfiForeignDeps
to fill theincludes
field:The text was updated successfully, but these errors were encountered: