From 1d179dff371911708086fca2313b7cedc5d0a652 Mon Sep 17 00:00:00 2001 From: Javier Neira Date: Sun, 5 Aug 2018 01:37:49 +0200 Subject: [PATCH] Stack support (#535) * rename previous lts-11 yaml file and add needed extra-deps * use new lts-12.4 * add import of Data.Monoid.(<>) to make it compilable with base < 4.11 (and stack lts-11) * add needed extra-deps --- src/Dhall/Binary.hs | 1 + stack-lts-11.yaml | 8 ++++++++ stack-lts-6.yaml | 2 ++ stack.yaml | 5 +++-- 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 stack-lts-11.yaml diff --git a/src/Dhall/Binary.hs b/src/Dhall/Binary.hs index f22ceb6..920fd41 100644 --- a/src/Dhall/Binary.hs +++ b/src/Dhall/Binary.hs @@ -34,6 +34,7 @@ import Dhall.Core , URL(..) , Var(..) ) +import Data.Monoid ((<>)) import Data.Text (Text) import Options.Applicative (Parser) import Prelude hiding (exponent) diff --git a/stack-lts-11.yaml b/stack-lts-11.yaml new file mode 100644 index 0000000..c74558b --- /dev/null +++ b/stack-lts-11.yaml @@ -0,0 +1,8 @@ +resolver: lts-11.12 +extra-deps: + - cborg-0.2.0.0 + - serialise-0.2.0.0 +nix: + packages: + - ncurses + - zlib diff --git a/stack-lts-6.yaml b/stack-lts-6.yaml index 392254f..12782f2 100644 --- a/stack-lts-6.yaml +++ b/stack-lts-6.yaml @@ -21,3 +21,5 @@ extra-deps: - insert-ordered-containers-0.2.1.0 - aeson-1.2.3.0 - th-abstraction-0.2.6.0 +- cborg-0.2.0.0 +- serialise-0.2.0.0 diff --git a/stack.yaml b/stack.yaml index 413f2be..1dc3bf2 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1,5 +1,6 @@ -resolver: lts-11.12 - +resolver: lts-12.4 +extra-deps: + - serialise-0.2.0.0 nix: packages: - ncurses