Git Product home page Git Product logo

Comments (7)

lamyergeier avatar lamyergeier commented on June 12, 2024 1

Doesn't work:

$ cabal install pandoc-include                                                                    Resolving dependencies...
Configuring pandoc-include-0.0.1...
Building pandoc-include-0.0.1...
Failed to install pandoc-include-0.0.1
Build log ( /home/nikhil/.cabal/logs/pandoc-include-0.0.1.log ):
cabal: Entering directory '/tmp/cabal-tmp-30507/pandoc-include-0.0.1'
Configuring pandoc-include-0.0.1...
Warning: 'hs-source-dirs: src' directory does not exist.
Building pandoc-include-0.0.1...
Preprocessing library pandoc-include-0.0.1...
Preprocessing executable 'pandoc-include' for pandoc-include-0.0.1...
[1 of 1] Compiling Main             ( IncludeFilter.hs, dist/build/pandoc-include/pandoc-include-tmp/Main.o )

IncludeFilter.hs:71:53: error:
    * Couldn't match type `[Char]' with `Data.Text.Internal.Text'
      Expected type: Data.Text.Internal.Text
        Actual type: String
    * In the second argument of `readMarkdown', namely `content'
      In the second argument of `($!)', namely `readMarkdown def content'
      In the expression: return $! readMarkdown def content
cabal: Leaving directory '/tmp/cabal-tmp-30507/pandoc-include-0.0.1'
cabal: Error: some packages failed to install:
pandoc-include-0.0.1 failed during the building phase. The exception was:
ExitFailure 1

from pandoc-include.

masasakano avatar masasakano commented on June 12, 2024

I confirm that in macOS 10.13.6 today, after cabal update.

from pandoc-include.

rbarzic avatar rbarzic commented on June 12, 2024

Same on Ubuntu 18.04.2 LTS

from pandoc-include.

tonyday567 avatar tonyday567 commented on June 12, 2024

It's a bit heavy-weight, but I do this sort of thing now via the pandocs API and classes, which is a joy but there are quirks. http://hackage.haskell.org/package/readme-lhs is an example.

from pandoc-include.

mslinn avatar mslinn commented on June 12, 2024

Same on Ubuntu 20.10

from pandoc-include.

dfucci avatar dfucci commented on June 12, 2024

Same here on OSX 11.1

Resolving dependencies...
Build profile: -w ghc-8.10.3 -O1
In order, the following will be built (use -v for more details):
 - pandoc-include-0.0.1 (exe:pandoc-include) (requires build)
Starting     pandoc-include-0.0.1 (exe:pandoc-include)
Building     pandoc-include-0.0.1 (exe:pandoc-include)

Failed to build exe:pandoc-include from pandoc-include-0.0.1.
Build log ( /Users/dfu/.cabal/logs/ghc-8.10.3/pndc-ncld-0.0.1-ef6aa3ce.log ):
Configuring executable 'pandoc-include' for pandoc-include-0.0.1..
Warning: 'hs-source-dirs: src' directory does not exist.
Preprocessing executable 'pandoc-include' for pandoc-include-0.0.1..
Building executable 'pandoc-include' for pandoc-include-0.0.1..
[1 of 1] Compiling Main             ( IncludeFilter.hs, dist/build/pandoc-include/pandoc-include-tmp/Main.o )

IncludeFilter.hs:71:53: error:
    • Couldn't match type ‘[Char]’ with ‘Data.Text.Internal.Text’
      Expected type: Data.Text.Internal.Text
        Actual type: String
    • In the second argument of ‘readMarkdown’, namely ‘content’
      In the second argument of ‘($!)’, namely ‘readMarkdown def content’
      In the expression: return $! readMarkdown def content
   |
71 | ioReadMarkdown content = return $! readMarkdown def content
   |                                                     ^^^^^^^

IncludeFilter.hs:91:22: error:
    • Couldn't match type ‘Data.Text.Internal.Text’ with ‘[Char]’
      Expected type: [[Char]]
        Actual type: [Data.Text.Internal.Text]
    • In the second argument of ‘elem’, namely ‘classes’
      In the expression: "include" `elem` classes
      In a stmt of a pattern guard for
                     an equation for ‘doInclude’:
        "include" `elem` classes
   |
91 |   | "include" `elem` classes = do
   |                      ^^^^^^^

IncludeFilter.hs:92:44: error:
    • Couldn't match type ‘Data.Text.Internal.Text’ with ‘[Char]’
      Expected type: String
        Actual type: Data.Text.Internal.Text
    • In the first argument of ‘getProcessableFileList’, namely ‘list’
      In the expression: getProcessableFileList list
      In an equation for ‘toProcess’:
          toProcess = getProcessableFileList list
   |
92 |     let toProcess = getProcessableFileList list
   |                                            ^^^^
cabal: Failed to build exe:pandoc-include from pandoc-include-0.0.1. See the
build log above for details.

from pandoc-include.

deligeer avatar deligeer commented on June 12, 2024

cabal install --force-reinstalls pandoc pandoc-include --constraint 'pandoc < 2'

from pandoc-include.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.