From c5cb2370797af2444f442df612aee483d4210e55 Mon Sep 17 00:00:00 2001 From: "Julian K. Arni" Date: Sun, 27 Dec 2015 17:54:29 +0100 Subject: [PATCH] less OverlappingInstances noise --- include/overlapping-compat.h | 8 ++++++++ servant-js.cabal | 1 + 2 files changed, 9 insertions(+) create mode 100644 include/overlapping-compat.h diff --git a/include/overlapping-compat.h b/include/overlapping-compat.h new file mode 100644 index 0000000..eef9d4e --- /dev/null +++ b/include/overlapping-compat.h @@ -0,0 +1,8 @@ +#if __GLASGOW_HASKELL__ >= 710 +#define OVERLAPPABLE_ {-# OVERLAPPABLE #-} +#define OVERLAPPING_ {-# OVERLAPPING #-} +#else +{-# LANGUAGE OverlappingInstances #-} +#define OVERLAPPABLE_ +#define OVERLAPPING_ +#endif diff --git a/servant-js.cabal b/servant-js.cabal index 53a74e9..a47ecd3 100644 --- a/servant-js.cabal +++ b/servant-js.cabal @@ -49,6 +49,7 @@ library hs-source-dirs: src default-language: Haskell2010 ghc-options: -Wall + include-dirs: include executable counter main-is: counter.hs