forked from granule-project/granule
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
329 changed files
with
7,514 additions
and
2,612 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Ignore everything | ||
* | ||
|
||
# Whitelist the following | ||
!LICENSE | ||
!README.md | ||
!StdLib | ||
!frontend | ||
!interpreter | ||
!repl | ||
!stack.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Use Agda syntax hightlighting for Granule | ||
*.gr linguist-language=Agda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,3 +60,6 @@ Temporary Items | |
|
||
# Compiler Examples | ||
compiler-examples/ | ||
|
||
# VSCode | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Stack build environment | ||
FROM fpco/stack-build:lts-13.21 AS build | ||
WORKDIR /granule | ||
COPY . /granule/ | ||
RUN stack install --local-bin-path /usr/bin && stack clean --full | ||
RUN wget https://github.com/Z3Prover/z3/releases/download/z3-4.8.4/z3-4.8.4.d6df51951f4c-x64-ubuntu-16.04.zip \ | ||
&& unzip z3-4.8.4.d6df51951f4c-x64-ubuntu-16.04.zip \ | ||
&& mv z3-4.8.4.d6df51951f4c-x64-ubuntu-16.04/bin/z3 /usr/bin/z3 \ | ||
&& rm -rf z3-4.8.4.d6df51951f4c-x64-ubuntu-16.04* | ||
|
||
# Get a stripped down ubuntu 16.04 for a lean distribution image | ||
FROM ubuntu:xenial-20190515 | ||
WORKDIR /granule | ||
COPY --from=build /usr/bin/gr /usr/bin/grin /usr/bin/z3 /usr/bin/ | ||
COPY --from=build /granule /granule | ||
RUN apt-get update | ||
# for GHC | ||
RUN apt-get install -y libgmp10 | ||
# for Z3 | ||
RUN apt-get install -y libgomp1 | ||
# UTF8 support | ||
RUN apt-get install -y locales \ | ||
&& sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \ | ||
&& dpkg-reconfigure --frontend=noninteractive locales \ | ||
&& update-locale LANG=en_US.UTF-8 | ||
ENV LANG en_US.UTF-8 | ||
# add .granule config file | ||
RUN echo "--include-path /granule/StdLib --alternative-colors" > ~/.granule | ||
CMD ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.