This repository has been archived by the owner on Oct 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from codecrafters-io/rohitpaulk/upgrade-haske…
…ll-compiler Add new haskell compiler version
- Loading branch information
Showing
10 changed files
with
37 additions
and
15 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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
# failures. | ||
# | ||
# DON'T EDIT THIS! | ||
resolver: lts-16.0 | ||
resolver: lts-19.8 | ||
|
||
packages: | ||
- . |
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
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
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,21 @@ | ||
FROM haskell:9.0.2-buster | ||
|
||
WORKDIR /app | ||
|
||
RUN mkdir -p /etc/stack | ||
|
||
# Absence of this causes `stack run` to raise a permissions error | ||
RUN echo "allow-different-user: true" >> /etc/stack/config.yaml | ||
|
||
# Force usage of the system GHC installation | ||
RUN echo "install-ghc: false" >> /etc/stack/config.yaml | ||
RUN echo "system-ghc: true" >> /etc/stack/config.yaml | ||
|
||
COPY stack.yaml package.yaml stack.yaml.lock /app/ | ||
|
||
# Dummy static content to circumvent the /app doesn't exist warning | ||
RUN mkdir /app/app | ||
RUN echo 'main :: IO ()' >> /app/app/Main.hs | ||
RUN echo 'main = putStrLn "Hello, World!"' >> /app/app/Main.hs | ||
|
||
RUN stack build |
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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
# failures. | ||
# | ||
# DON'T EDIT THIS! | ||
resolver: lts-16.0 | ||
resolver: lts-19.8 | ||
|
||
packages: | ||
- . |
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
Empty file.
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