Comments (7)
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.
I confirm that in macOS 10.13.6 today, after cabal update
.
from pandoc-include.
Same on Ubuntu 18.04.2 LTS
from pandoc-include.
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.
Same on Ubuntu 20.10
from pandoc-include.
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.
cabal install --force-reinstalls pandoc pandoc-include --constraint 'pandoc < 2'
from pandoc-include.
Related Issues (11)
- Encoding problems when include cyrillic files HOT 11
- Doesn’t work with pandoc-citeproc HOT 1
- Problem with package csquotes HOT 2
- Nested includes don't work HOT 2
- Include only certain line numbers HOT 4
- How to install on windows? HOT 1
- Pandoc 2 Support Issues
- Couldn't match type ‘[Char]’ with ‘Data.Text.Internal.Text’ HOT 7
- Does this still work?
- Will you update this package to support pandoc 2.10.x? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandoc-include.