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?


--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8925c8c1-6b17-4b62-80f6-f82f3643fc85%40googlegroups.com.