From 37f1d353473939f36b22df243f3380fbcf109f6c Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Tue, 13 Nov 2018 18:03:53 +0800 Subject: Fix build with haddock-library >= 1.6.0 --- src/HaskellCodeExplorer/GhcUtils.hs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/HaskellCodeExplorer/GhcUtils.hs b/src/HaskellCodeExplorer/GhcUtils.hs index 33370d5..3a4ec26 100644 --- a/src/HaskellCodeExplorer/GhcUtils.hs +++ b/src/HaskellCodeExplorer/GhcUtils.hs @@ -1110,7 +1110,13 @@ hsDocsToDocH :: DynFlags -> GlobalRdrEnv -> [HsDocString] -> Doc Name hsDocsToDocH flags rdrEnv = rename flags rdrEnv . overIdentifier (parseIdent flags) . - _doc . parseParas . concatMap (unpackFS . (\(HsDocString s) -> s)) + _doc +#if MIN_VERSION_haddock_library(1,6,0) + . parseParas Nothing +#else + . parseParas +#endif + . concatMap (unpackFS . (\(HsDocString s) -> s)) parseIdent :: DynFlags -> String -> Maybe RdrName parseIdent dflags str0 = -- cgit v1.2.3 From 24ba7ffb30220baec845791df9c5c8236b23326e Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Tue, 13 Nov 2018 18:04:16 +0800 Subject: Add proper cabal.project file with cabal-helper as subpackage --- cabal.project | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 cabal.project diff --git a/cabal.project b/cabal.project new file mode 100644 index 0000000..34e7a84 --- /dev/null +++ b/cabal.project @@ -0,0 +1,21 @@ +-- These are project-fixed settings and should not contain developer specific settings. +-- +-- Developer specific settings can be configured in cabal.project.local (e.g. optimization level) +-- either manually or through 'cabal new-configure'. +-- +-- Refer to the documentation: https://cabal.readthedocs.io/en/latest/nix-local-build.html#cabal-new-configure +-- https://cabal.readthedocs.io/en/latest/nix-local-build.html#configuring-builds-with-cabal-project +-- +-- A common config might be: +-- -- all local packages +-- optimization: 0 +-- +-- -- always build dependencies with highest optimization +-- package * +-- optimization: 2 + +with-compiler: ghc-8.4.4 + +packages: . + vendor/cabal-helper-0.8.1.2 + -- cgit v1.2.3