Skip to content

Commit

Permalink
src: move Parsec/ under comp/
Browse files Browse the repository at this point in the history
The top-level structure under `src/` is awkward and it's unclear why Parsec is
here. Why not `vendor/`? Ultimately though, I think the best place is actually
inside the source code, because it's not like anything else uses it and it's
`bsc`-owned code already in practice anyway.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
  • Loading branch information
thoughtpolice committed Jul 20, 2024
1 parent 9a97f9d commit c0b6fcf
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Tell Linguist not to include the following code
# in statistics about this repo
#
src/Parsec/** linguist-vendored
src/comp/Parsec/** linguist-vendored
src/vendor/stp/src/** linguist-vendored
testsuite/** linguist-vendored
doc/** linguist-documentation
testsuite/** linguist-vendored
doc/** linguist-documentation

# Scripts that query git for commit info will not work
# if the source is not in a git repo, so when exporting
Expand Down
2 changes: 1 addition & 1 deletion COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ license. The following are known to have other authors and licenses:
* See LICENSES/LICENSE.hbc

* Parsec
* Files in src/Parsec/ are adapted from Daan Leijen's Parsec
* Files in src/comp/Parsec/ are adapted from Daan Leijen's Parsec
Haskell library
* See LICENSES/LICENSE.parsec
* Source and license obtained on 2004-01-28 from
Expand Down
2 changes: 1 addition & 1 deletion src/comp/.ghci
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
:set -package syb

-- Haskell source
:set -i../comp:../comp/Libs:../comp/GHC:../comp/GHC/posix:../Parsec
:set -i../comp:../comp/Libs:../comp/GHC:../comp/GHC/posix:../comp/Parsec

-- Shared libraries and FFI bindings
:set -i../vendor/stp/include_hs
Expand Down
2 changes: 1 addition & 1 deletion src/comp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ BINDIR=$(PREFIX)/bin
BUILDDIR=$(TOP)/build/comp

# Parsec
PARSEC_HS = ../Parsec
PARSEC_HS = Parsec

# STP
STP_HS = ../vendor/stp/include_hs
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions util/haskell-language-server/gen_hie.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"./Parser",
"./Parser/BSV",
"./Parser/Classic",
"../Parsec",
"./Parsec",
"../vendor/stp/include_hs",
"../vendor/yices/include_hs",
"../vendor/htcl"
Expand All @@ -39,4 +39,4 @@
# form and dump yaml file
hie_yaml = {"cradle":{"direct":{"arguments":arguments}}}
f = open("hie.yaml", "w")
f.write(yaml.dump(hie_yaml))
f.write(yaml.dump(hie_yaml))

0 comments on commit c0b6fcf

Please sign in to comment.