--- /dev/null
+:set -optP-include -optPdist/build/autogen/cabal_macros.h
# -optl-pthread -pgml g++ "$file"
# but cannot make it "only glibc is shared". And with static glibc,
# getaddrinfo does not work on systems with different glibc.
+#
+# To build with ghc, run this:
+#ghc --make -optP-include -optPdist/build/autogen/cabal_macros.h "$file"
+# but it is still necessary to run `cabal configure` before to generate
+# the file `dist/build/autogen/cabal_macros.h`.
+
cabal build
case $? in
0) ;;
import Data.Aeson (encode, decode, Value(..))
import Network.HTTP.Types
import Network.HTTP.Client
-#if MIN_VERSION_data_default(0,5,3)
+#if MIN_VERSION_http_client(0,3,0)
import Data.Default.Class (def)
#else
import Data.Default (def)