From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28260 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Mac 10.15 compiling using ghc Date: Fri, 30 Apr 2021 08:31:14 -0700 Message-ID: References: <87wnsjewqw.fsf@mat.ucm.es> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28485"; mail-complaints-to="usenet@ciao.gmane.io" To: Uwe Brauer , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBUOFWCCAMGQEZQGS2XY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Apr 30 17:31:32 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qt1-f190.google.com ([209.85.160.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lcV75-0007JJ-TU for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 30 Apr 2021 17:31:31 +0200 Original-Received: by mail-qt1-f190.google.com with SMTP id k13-20020ac8140d0000b02901bad0e39d8fsf5732713qtj.6 for ; Fri, 30 Apr 2021 08:31:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1619796691; cv=pass; d=google.com; s=arc-20160816; b=Bifgyv+PSpJFu8V8ZaLw94B6bsetrN1aWAgMclOejg6wpLj8+wkdFUuNeeKdiOKQsW MUVqHb1kWMIPySYaGjOsHte4GxEVrbJYWKLfjlVRLZb/eSVkNya9wfAzgp+EUKMoBqH9 HTzizjN2CiI+idwUYXtwxcToDMnF4cJFRfs+SWQP1hc9ciUo5uOmBaQMefBCNgSx7FiA thQ9vp7FlskrKftx81TSJsrzEW1a74aCARQRRJSj/9QFoDPzYOOQT9BAAuYI1Tb9Do7h 57GrD/jCRmrctjdPf9u0srqHmx1ZZV9AFdowVA6KyxjDSkxrBfnDLqqmZprFQqp4fP4A 0fJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=roJngx6Zjs7fHckgI2AvcLCypWCDvnaY8r797zJcfN4=; b=nOBAQ6FRPXFR/ZK5uOg6dFyJobrSYrP6WaNoDTIbhB7StKtuLUWuE6PlUHOx1+xQtP tmPOK2xXVVZgoBRrrcygl4PXnw/8QcNt9AqybQA7qSgt1eAjhjetyqeCmQzOd/5F1GHJ nSYrLcy0ZJtM/QMN1ojUqINCdQIP56KCOkr4IcV0o2oOhJKjaOP2Tf3EAvVsZyt0NNn0 E/cytyWh1hNo9FKSCqN0FISBZllb/ZATLk6mRWaw/TN3y40OWockDJ++aQTScugQCBed Kwd13yW5uhxXOehuY1Iy+n0UnB2YEk1gjYBWP+xHFbjj+J9kuw98+HOwj/jKnGnRyl0p uw6w== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=adkhDMFn; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1029 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=roJngx6Zjs7fHckgI2AvcLCypWCDvnaY8r797zJcfN4=; b=FXMfuEHzW9mh6BZcCmzBKPsGmwO2ZAVURmXHW7t1TLFZ/dwm8ydw2ZrZDw/NjxrHli 8Op3NwsVcBlDnOYzu3FBULB2k4GYzJ+kIQK6h160ssOl/a8V5SdWhfWYq2OSX2bi8Zmx FZoGzvfi7otBIsgjui8hYBqft2rfVeGQgWnRAMEC65Xc6hNzO3ji4TWb6wcHc1RIfp+B KnyCdY6tUS4Od4m+ysPeb3va2nLWtMRLHkLpIoHT0cKMO0yq8Bt6bTUA/5CXPxKVkjq4 q87pou7IjDhVeQvDFQMXwQqlJaEdErynPElDcYTlGbIoP4GdJO+jAgWV60bw9RY9nmT2 7egg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=roJngx6Zjs7fHckgI2AvcLCypWCDvnaY8r797zJcfN4=; b=TRHPhk4bblUsHK2CHHM01a7L+dJPT2x2jMlhpbLPCcNJ4BnSoWSz0KN6RZFhRnV39r wDfTR82Bnw6Iwde8o2zWKGMxSYjYgfL1STHSoEK7ISA9roDdUzznse/fNzIxdW2euW9S HWigFTDhpfdpnr7yn9l+R9IbitZmLKQ6p/42r8OfltpzAISEbAdVHoa+5tNm69C6/NQg QJrIyeoOlYiDmR5RP0OorhoAVGbB8ilOyjlAthBfnpFWMwmCKCKYULvrvGCIh4a8xyc0 vwVUHaajYS2niyBUoB+UxoWHyt+Txn3J6JCZCKEUSDepkQD1CDffRckkYCmlK/raa7iX heLg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532ugJMNm9f6LNDbnt8sG4jcedtFNv2cFUpaNila0Y76tXfaugfK M6YievXcHGuVU/aECvBR7uA= X-Google-Smtp-Source: ABdhPJwWqDCZpWATIVev7UkhAqAO1lfTYryNqrn9YZiZCF65rMK3lIzGdnMFpxKqE+nsf5YJAxwOsw== X-Received: by 2002:a05:6214:766:: with SMTP id f6mr6231693qvz.17.1619796691080; Fri, 30 Apr 2021 08:31:31 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ac8:13c7:: with SMTP id i7ls2868605qtj.0.gmail; Fri, 30 Apr 2021 08:31:29 -0700 (PDT) X-Received: by 2002:a05:622a:40b:: with SMTP id n11mr4920400qtx.167.1619796687885; Fri, 30 Apr 2021 08:31:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619796687; cv=none; d=google.com; s=arc-20160816; b=0mc8lwg837sB/EiZ8xrOP6XjV3xzbm+/050hML6qE3lODgzyaWa78X8Rj3Qc7EOIaa YYmFGeqWQVnJ7LiVGHjPnaMvzvXNv2dkRKX1LcA9+34am1vszW8kglCw2s0zd6doidAw BO7rYZ9pNI02OUWh9ZWeqvZ+CxFVeTi5NDw/K4r39f7uFQ5CVwCbnVrDB6/lbxA/ASZh YNmRf1g/Tt2Enwenef7EjWhKs7K1psjJXJymGoVVRbdiuEfd0tlOc2tbelzJim/Nlncz 3gG94nApTmuyZlAILCCb9IIYxq9/IsorW66M+g4gblBw9/PRuQ7gQKZYJL8OPgewg//Z pDUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=G6CezyhSyg22Kl02cPm2V2r4mAEJ4bVlt5pUjza2/2s=; b=koGpXfY5k5Y5uB6JBHXqebBtZNT4cWM0sTKY7P3rt9oDLHepmWSRWB9pBpLt/itCFj Z/iqe2dI0bJBSDTY51NtslTQJ/tZGdijx2mH3uYFMdf1uluanK4XeH+9oOtcPmvZGQwE lsfejKRokajfurgpaptjRbuGuO3Noz2CyCVHWj+U2tec8wtr7qegeOeFD5RS6WhFxJIO erFKpZxNT4qE+6JskZBt10IvZEoEwZ6TZ5U0UVmihfvYOF4TIgGU6L/QK4mORkM3POki apaLQr5XcpawQ0ObW2TX2Iqntuzk9zolg3ZS9LLsdY5HbHD+869myj+Fn8fGPYzswB1Y Nweg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=adkhDMFn; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1029 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com. [2607:f8b0:4864:20::1029]) by gmr-mx.google.com with ESMTPS id t65si198599qke.7.2021.04.30.08.31.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Apr 2021 08:31:27 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1029 as permitted sender) client-ip=2607:f8b0:4864:20::1029; Original-Received: by mail-pj1-x1029.google.com with SMTP id b14-20020a17090a6e0eb0290155c7f6a356so5777797pjk.0 for ; Fri, 30 Apr 2021 08:31:27 -0700 (PDT) X-Received: by 2002:a17:90a:ad09:: with SMTP id r9mr15980804pjq.2.1619796686372; Fri, 30 Apr 2021 08:31:26 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id t4sm2629366pfq.165.2021.04.30.08.31.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Apr 2021 08:31:25 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 81AB9A231; Fri, 30 Apr 2021 11:31:14 -0400 (EDT) In-Reply-To: <87wnsjewqw.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=adkhDMFn; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1029 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:28260 Archived-At: The issue is that ghc doesn't know where to find the dependent libraries (in this case pandoc-types). On ubuntu you probably had this installed in a central location. Generally, to build Haskell code with dependencies you need to use stack or cabal. But see here: https://stackoverflow.com/questions/65539773/compiling-a-haskell-script-with-external-dependencies-without-cabal It looks like you can do: cabal install --lib pandoc-types ghc --make striplatex.hs Try that. Uwe Brauer writes: > Hi > > Under linux (Ubuntu 16.04) > > I run successfully > > ghc --make striplatex.hs > where striplatex is just > > ,---- > | import Text.Pandoc.JSON > | > | main = toJSONFilter stripmath > | where stripmath (Math _ _) = Str "FORMULA" > | stripmath x = x > `---- > > That nicely replaces all my mathematical formula, just by the word > FORMULA > > I tried the same under Mac 10.15. > > For that I installed pandoc https://github.com/jgm/pandoc/releases/tag/2.13 > > I install ghc using fink (that is one of the three linux like > environments (the others are macports and homebrew). > > However when I run > > ghc --make striplatex.hs > > I obtain > > Could not find module Text.Pandoc.JSON > > I admit I just started using a Mac and don't know many details. > > Any help would be appreciated > > Thanks > > Uwe Brauer > > -- > 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/87wnsjewqw.fsf%40mat.ucm.es.