public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: Uwe Brauer <oub-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>,
	pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: [some success] (was: Mac 10.15 compiling using ghc)
Date: Sun, 02 May 2021 13:33:10 -0700	[thread overview]
Message-ID: <m2tunkswop.fsf@MacBook-Pro.hsd1.ca.comcast.net> (raw)
In-Reply-To: <m27dkhc9a5.fsf_-_-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>


This one is easy.  After this filter was written, pandco-types
changed to using Text instead of String.

Probably the easiest fix is to add the line

{-# LANGUAGE OverloadedStrings #-}

to the top of the filter.

Uwe Brauer <oub-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> writes:

>>>> "JM" == John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes:
>
>> Although with the old version of cabal you have, it might
>> work just to do
>
>> cabal install pandoc-types
>
>> and then ghc --make as before.
>
> So finally 
>
>     1. I un installed the ghc provided by fink,
>
>     2. I then used  https://www.haskell.org/ghcup/
>
>     3. And installed ghc and the corresponding cabal version
>
>     4. cabal install --lib pandoc-types
>
> ghc --make stripmath.hs
>
> ,----
> | Loaded package environment from /Users/oub/.ghc/x86_64-darwin-8.10.4/environments/default
> | [1 of 1] Compiling Main             ( stripmath.hs, stripmath.o )
> | 
> | stripmath.hs:4:38: error:
> |     • Couldn't match expected type ‘Data.Text.Internal.Text’
> |                   with actual type ‘[Char]’
> |     • In the first argument of ‘Str’, namely ‘"FORMULA"’
> |       In the expression: Str "FORMULA"
> |       In an equation for ‘stripmath’:
> |           stripmath (Math _ _) = Str "FORMULA"
> |   |
> | 4 |     where stripmath (Math _ _) = Str "FORMULA"
> |   |                                      ^^^^^^^^^
> | 
> `----
>
> Sigh, what is now the problem?
>
> Regards
>
>
> -- 
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/m27dkhc9a5.fsf_-_%40mat.ucm.es.

-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/m2tunkswop.fsf%40MacBook-Pro.hsd1.ca.comcast.net.


  parent reply	other threads:[~2021-05-02 20:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-30 13:18 Mac 10.15 compiling using ghc Uwe Brauer
     [not found] ` <87wnsjewqw.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>
2021-04-30 15:31   ` John MacFarlane
     [not found]     ` <m2im436b7h.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-04-30 15:34       ` John MacFarlane
2021-04-30 16:25         ` Uwe Brauer
     [not found]           ` <87czubeo4d.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>
2021-04-30 19:03             ` John MacFarlane
     [not found]               ` <m2y2cz389c.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-04-30 19:04                 ` John MacFarlane
2021-05-01 11:11                   ` Uwe Brauer
2021-05-02 17:53                   ` [some success] (was: Mac 10.15 compiling using ghc) Uwe Brauer
     [not found]                     ` <m27dkhc9a5.fsf_-_-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>
2021-05-02 20:33                       ` John MacFarlane [this message]
2021-05-03  7:18                         ` [some success] Uwe Brauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2tunkswop.fsf@MacBook-Pro.hsd1.ca.comcast.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=oub-YB6e1s5WF/He5aOfsHch1g@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).