CDSoft / abp

Abstract Processor for Pandoc
GNU General Public License v3.0
9 stars 0 forks source link

Error while building package abp-0.1.8.3 #2

Closed jt291 closed 4 years ago

jt291 commented 4 years ago

Hello,

I can't install abp on macOS Catalina 10.15.3.

$ stack install
Stack has not been tested with GHC versions above 8.6, and using 8.8.3, this may fail
Stack has not been tested with Cabal versions above 2.4, but version 3.0.1.0 was found, this may fail
...
skylighting                      > Registering library for skylighting-0.8.4..
pandoc                           > configure
pandoc                           > Configuring pandoc-2.9.1.1...
pandoc                           > build
pandoc                           > Preprocessing library for pandoc-2.9.1.1..
pandoc                           > Building library for pandoc-2.9.1.1..
...
pandoc                           > Registering library for pandoc-2.9.1.1..
pandoc-csv2table                 > configure
pandoc-csv2table                 > Configuring pandoc-csv2table-1.0.8...
pandoc-csv2table                 > build
pandoc-csv2table                 > Preprocessing library for pandoc-csv2table-1.0.8..
pandoc-csv2table                 > Building library for pandoc-csv2table-1.0.8..
...
pandoc-csv2table                 > Registering library for pandoc-csv2table-1.0.8..
Building all executables for `abp' once. After a successful build of all of them, only specified executables will be rebuilt.
abp                              > configure (lib + exe)
Configuring abp-0.1.8.3...
abp                              > build (lib + exe)
Preprocessing library for abp-0.1.8.3..
Building library for abp-0.1.8.3..
[ 1 of 15] Compiling CSV
[ 2 of 15] Compiling Config

/Users/myname/Documents/Pandoc/abp/abp-0.1.8.3/src/Config.hs:65:34: error:
    • Couldn't match expected type ‘Data.Text.Internal.Text’
                  with actual type ‘[Char]’
    • In the pattern: "html"
      In the pattern: Format "html"
      In the pattern: Just (Format "html")
   |                 
65 |                     Just (Format "html") -> defaultHTML
   |                                  ^^^^^^
...
Completed 113 action(s).

--  While building package abp-0.1.8.3 using:
      /Users/myname/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.3 --builddir=.stack-work/dist/x86_64-osx/Cabal-3.0.1.0 build lib:abp exe:abp --ghc-options " -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1

Thanks for your help.

CDSoft commented 4 years ago

Hello, That's strange. abp 0.1.8.3 uses stack LTS 14.27 which is based on ghc 8.6.5. Did you change the LTS version in stack.yaml?

CDSoft commented 4 years ago

I have ported abp to pandoc 2.9 (stack LTS 15.12). You can try abp 0.1.8.4

jt291 commented 4 years ago

It's okay with this new version 0.1.8.4. Thanks a lot.

$ abp -v
abp 0.1.8.4
Abstract Processor for Pandoc

Copyright (C) 2019-2020 Christophe Delord
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Released under the GPL-3 license.

See https://cdsoft.fr/abp for further information.

I liked your pp preprocessor. I think I'm gonna like abp even more ! Encore merci.