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

Support for ghc-7.10.3 / lts-6.27 #340

Merged
merged 9 commits into from
Apr 6, 2018

Conversation

jneira
Copy link
Collaborator

@jneira jneira commented Mar 28, 2018

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.

Copy link
Collaborator

@Gabriella439 Gabriella439 left a 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 #-}
Copy link
Collaborator

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
Copy link
Collaborator

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 ,
Copy link
Collaborator

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
Copy link
Collaborator

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

@jneira
Copy link
Collaborator Author

jneira commented Apr 6, 2018

@Gabriel439 hi, besides the requested changes, i had to add megaparsec and parser-combinators in stack.yaml to make stack build work.

@Gabriella439
Copy link
Collaborator

Thanks! Looks great to me :)

@Gabriella439 Gabriella439 merged commit 8c0f09f into dhall-lang:master Apr 6, 2018
@jneira jneira deleted the ghc-7.10.3 branch April 7, 2018 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants