Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] examples/bytestring #199

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

quinn-dougherty
Copy link
Contributor

with a very liberal "just append stuff till the executable stops complaining" approach toward making an edits file, I've almost gotten an examples/bytestring together.

I used a git submodule add to get the bytestring source in here.

Current bottleneck: "GHC.Prim.Notations is not a module" https://github.com/quinn-dougherty/hs-to-coq/blob/a69ccb3c1f23db22ac0ce6a99b9317ddfc097280/examples/bytestring/lib/Data/ByteString/Internal.v#L20 -- It doesn't appear to me that hs-to-coq is generating Notation modules in base, so I'm not sure what's going on. I get this error both when I stack exec hs-to-coq -- (in the standard common.mk) and when I run nixified result/bin/hs-to-coq.

the hs-to-coq execution seems to be going great! it's just outputting stuff that can't be coqc'd, or isn't successfully coqc'd according to the Makefile (which I wrote based on examples/containers/Makefile).

I super appreciate it if anyone has time to show me what I'm doing wrong. Also, totally open minded if you think it's not worth having this in examples dir.

@@ -21,3 +21,4 @@ HS_TO_COQ = cabal new-run --project-file=$(TOP)/cabal.project -v0 $(CABAL_OPTS)
endif

SHELL = bash
HS_TO_COQ = //home/quinn/Dropbox/Projects/haskell/hstocoq-bytestring/hs-to-coq/result/bin/hs-to-coq
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll back this out don't worry, was just testing something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant