-
Notifications
You must be signed in to change notification settings - Fork 217
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
Support for ghc-7.10.3 / lts-6.27 #340
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Just a few comments
src/Dhall.hs
Outdated
@@ -9,7 +9,7 @@ | |||
{-# LANGUAGE RecordWildCards #-} | |||
{-# LANGUAGE ScopedTypeVariables #-} | |||
{-# LANGUAGE StandaloneDeriving #-} | |||
{-# LANGUAGE TypeApplications #-} | |||
-- {-# LANGUAGE TypeApplications #-} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can delete this line
stack.yaml
Outdated
@@ -1,4 +1,20 @@ | |||
resolver: lts-9.6 | |||
resolver: lts-6.27 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of modifying stack.yaml
, could you create a new stack-lts-6.yaml
file?
dhall.cabal
Outdated
base >= 4.9.0.0 && < 5 , | ||
ansi-terminal >= 0.6.3.1 && < 0.8 , | ||
base >= 4.8.2.0 && < 5 , | ||
ansi-terminal >= 0.6.3.1 && < 0.8 , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like there is some unintentional whitespace at the end of this line
dhall.cabal
Outdated
@@ -178,7 +178,9 @@ Library | |||
text >= 0.11.1.0 && < 1.3 , | |||
transformers >= 0.2.0.0 && < 0.6 , | |||
unordered-containers >= 0.1.3.0 && < 0.3 , | |||
vector >= 0.11.0.0 && < 0.13 | |||
vector >= 0.11.0.0 && < 0.13, | |||
semigroups >= 0.8.3.1 && < 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, one more request: could you change this line to:
if !impl(ghc >= 8.0)
build-depends: semigroups == 0.18.*
See: https://prime.haskell.org/wiki/Libraries/Proposals/SemigroupMonoid#RecommendedVariant
@Gabriel439 hi, besides the requested changes, i had to add |
Thanks! Looks great to me :) |
Hi, in the process of integrate the use of dhall with eta we have needed to compile dhall with the version of ghc used to compile eta itself. In this way we can use dhall to configure eta and to configure the packages compiled with it.
Maybe a version compilable with ghc-7.10.3 could be useful for other users so we open the pr.
Fortunately all dependencies are in a suitable range and only there is a type application that needs ghc 8.
There is the option to add conditions on ghc version in the cabal file and modules but maybe it supposes too much burden. Another one would be simply create a dedicated branch. Let me know which one do you think is better.