summaryrefslogtreecommitdiff
path: root/examples/Trivial.hs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Trivial.hs')
-rw-r--r--examples/Trivial.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/Trivial.hs b/examples/Trivial.hs
index 5cb9110..bd74f60 100644
--- a/examples/Trivial.hs
+++ b/examples/Trivial.hs
@@ -2,6 +2,7 @@
-- Copyright © 2014 AlephCloud Systems, Inc.
-- ------------------------------------------------------ --
+{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE UnicodeSyntax #-}
@@ -11,7 +12,12 @@
module Main ( main ) where
import Configuration.Utils
+
+#if MIN_VERSION_Cabal(2,0,0)
+import PkgInfo
+#else
import PkgInfo_trivial
+#endif
instance FromJSON (() → ()) where
parseJSON _ = pure id