Hi, I'm trying to upgrade to latest pandoc and I have no idea why I'm seeing the following error messages.
Shakefile.hs:189:76: error:
• Couldn't match expected type ‘Text.DocTemplates.Internal.Context
Text’
with actual type ‘a0 -> Context a0 b0 t0’
• Probable cause: ‘Context’ is applied to too few arguments
In the ‘writerVariables’ field of a record
In the expression:
def
{writerTableOfContents = True,
writerVariables = Context
(M.fromList
[("geometry", "margin=3cm"), ("fontsize", "10"),
("linkcolor", "blue")])}
In an equation for ‘latexWriterOptions’:
latexWriterOptions
= def
{writerTableOfContents = True,
writerVariables = Context
(M.fromList
[("geometry", "margin=3cm"), ("fontsize", "10"), ....])}
|
189 | latexWriterOptions = def { writerTableOfContents = True, writerVariables = Context (M.fromList [("geometry","margin=3cm"), ("fontsize", "10"), ("linkcolor","blue")]) }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Shakefile.hs:189:85: error:
• Couldn't match expected type ‘b0 -> t0’
with actual type ‘Map [Char] [Char]’
• Possible cause: ‘M.fromList’ is applied to too many arguments
In the first argument of ‘Context’, namely
‘(M.fromList
[("geometry", "margin=3cm"), ("fontsize", "10"),
("linkcolor", "blue")])’
In the ‘writerVariables’ field of a record
In the expression:
def
{writerTableOfContents = True,
writerVariables = Context
(M.fromList
[("geometry", "margin=3cm"), ("fontsize", "10"),
("linkcolor", "blue")])}
|
189 | latexWriterOptions = def { writerTableOfContents = True, writerVariables = Context (M.fromList [("geometry","margin=3cm"), ("fontsize", "10"), ("linkcolor","blue")]) }
I have no idea what I'm seeing. Context contructor takes a Map. M.fromList [] is a Map. What is happening?