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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ ghc-head
*.crashcoqide
*.DS_Store

stack.yaml.lock
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@
[submodule "examples/graph/graph"]
path = examples/graph/graph
url = https://github.com/haskell/fgl.git
[submodule "examples/bytestring/bytestring"]
path = examples/bytestring/bytestring
url = https://github.com/haskell/bytestring
1 change: 1 addition & 0 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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.

2 changes: 2 additions & 0 deletions examples/bytestring/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.vo
*.glob
3 changes: 3 additions & 0 deletions examples/bytestring/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `bytestring`

`git submodule` corresponds to commit `11af63eab5945d2ac5aa39bcadc5f8bfa17f3a6d` as of this writing (nov-01-2021)
1 change: 1 addition & 0 deletions examples/bytestring/bytestring
Submodule bytestring added at 11af63
68 changes: 68 additions & 0 deletions examples/bytestring/edits
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
axiomatize module Data.ByteString.Builder.Internal
axiomatize module Data.ByteString.Builder.Prim.Internal.Base16
axiomatize module Data.ByteString.Builder
axiomatize module Data.ByteString.Internal
axiomatize module Data.ByteString.Lazy.Internal

axiomatize module Data.String

skip module GHC.Ptr
skip module GHC.ForeignPtr
skip module GHC.IO.Handle.Types
skip module Foreign.Storable
skip module GHC.IO.IOMode
skip module GHC.IO.Exception
skip module GHC.IO.Handle.FD
skip module GHC.IO.Error
skip module Foreign.C.String
skip module Foreign.Marshal.Alloc
skip module GHC.IO.Unsafe
skip module Foreign.Concurrent
skip module ForeignPtr.Imp
skip module Control.Exception.Base
skip module Foreign.Marshal.Utils
skip module System.IO.Error
skip module System.IO

skip module GHC.ST
skip module Foreign.ForeignPtr.Imp
skip module Foreign.C.Types
skip module Foreign.Marshal.Array
skip module GHC.Foreign
skip module GHC.IO.Buffer
skip module GHC.IO.Encoding
skip module GHC.IO.Handle.Text
skip module GHC.IO.Handle

rename type GHC.Maybe.Maybe = option
rename value GHC.Maybe.Just = Some
rename value GHC.Maybe.Nothing = None


# xiomatize module GHC.Ptr
# xiomatize module GHC.ForeignPtr
# xiomatize module GHC.IO.Handle.Types
# xiomatize module Foreign.Storable
# xiomatize module GHC.IO.IOMode
# xiomatize module GHC.IO.Exception
# xiomatize module GHC.IO.Handle.FD
# xiomatize module GHC.IO.Error
# xiomatize module Foreign.C.String
# xiomatize module Foreign.Marshal.Alloc
# xiomatize module GHC.IO.Unsafe
# xiomatize module Foreign.Concurrent
# xiomatize module ForeignPtr.Imp
# xiomatize module Control.Exception.Base
# xiomatize module Foreign.Marshal.Utils
# xiomatize module System.IO.Error
# xiomatize module System.IO
#
# xiomatize module GHC.ST
# xiomatize module Foreign.ForeignPtr.Imp
# xiomatize module Foreign.C.Types
# xiomatize module Foreign.Marshal.Array
# xiomatize module GHC.Foreign
# xiomatize module GHC.IO.Buffer
# xiomatize module GHC.IO.Encoding
# xiomatize module GHC.IO.Handle.Text
# xiomatize module GHC.IO.Handle
1 change: 1 addition & 0 deletions examples/bytestring/lib/Data/ByteString.h2ci
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading