* Mac 10.15 compiling using ghc @ 2021-04-30 13:18 Uwe Brauer [not found] ` <87wnsjewqw.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Uwe Brauer @ 2021-04-30 13:18 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <87wnsjewqw.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>]
* Re: Mac 10.15 compiling using ghc [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> 0 siblings, 1 reply; 10+ messages in thread From: John MacFarlane @ 2021-04-30 15:31 UTC (permalink / raw) To: Uwe Brauer, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw 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 <oub-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 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. ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <m2im436b7h.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>]
* Re: Mac 10.15 compiling using ghc [not found] ` <m2im436b7h.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org> @ 2021-04-30 15:34 ` John MacFarlane 2021-04-30 16:25 ` Uwe Brauer 0 siblings, 1 reply; 10+ messages in thread From: John MacFarlane @ 2021-04-30 15:34 UTC (permalink / raw) To: Uwe Brauer, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Actually, it's probably best to do cabal install --lib pandoc-types --package-env . which will not change the global cabal environment, but will just affect the working directory. John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > 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 <oub-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 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. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mac 10.15 compiling using ghc @ 2021-04-30 16:25 ` Uwe Brauer [not found] ` <87czubeo4d.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Uwe Brauer @ 2021-04-30 16:25 UTC (permalink / raw) To: John MacFarlane --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable >>> "JM" =3D=3D John MacFarlane <jgm@berkeley.edu> writes: > Actually, it's probably best to do > cabal install --lib pandoc-types --package-env . Thanks which cabal version fink provides 1.22.6=20 https://www.haskell.org/cabal/download.html Provides a much higher version but only for High Sierra while I run catalina. Any suggestions? Regards --=-=-= Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=smime.p7s MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCE8cw ggWDMIIDa6ADAgECAg9dk40wZzbIBh0ax1SEaQcwDQYJKoZIhvcNAQELBQAwOzELMAkGA1UEBhMC RVMxETAPBgNVBAoMCEZOTVQtUkNNMRkwFwYDVQQLDBBBQyBSQUlaIEZOTVQtUkNNMB4XDTA4MTAy OTE1NTk1NloXDTMwMDEwMTAwMDAwMFowOzELMAkGA1UEBhMCRVMxETAPBgNVBAoMCEZOTVQtUkNN MRkwFwYDVQQLDBBBQyBSQUlaIEZOTVQtUkNNMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKC AgEAunGAekyGbn/IE23Axn0cAJePLAwjuxCaQKkat4eI+JtWavvme46Lko6nJV1ZEds2LrdRFx+p CB8EFyRYqjdKGN/lOdRX/dfBLJEBkeIi1APAWPx3R+yPPnRDuqw0jU04dmeOsMhvMDNYcVy09Wtu 1AFQuBN+bEqjSdEgGe68wCkYZafe/u/dCpAh5xpnkkIQmF9PMLw+HEW0ENdoQBTAQPrndxd65guP ZVs82ZpS27W9nkbPPeuRBQLAlrJ2TE0QljuS+px/D5nfviM1RR4CXP61qJuZJdpe8yLDOfXkKi7T xh/EbKrFHGoBBUov0sXBqDQmXWal0gIh+Ri3BvVOmW+oq0xR6M9QGMV3yDkJLEmSMpmouxcXebBa xeajxFllRzWDXqnoNQuZu+TNIMabSgY5tWj8IrruVYwrTurzseP8tpma1UL6cU0Iz4ceanF9+dO0 6aVxgXvCTkeWpfZ2haMoj+mAboFTpW1fuEj5wvk2pi5J/7iWwowHs5uIWPzrGxzeLXDil5IwoYnj vFWoJ9ZL7ZCti/pjJVktqDXdypczvOXNx53R7O9eDkqQBiZjrbnZNS0HunZlLKxXj330B5TXgQKW XaMHSdV60Ff5G+dTRnWqs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ZSVArEXCoSmKDqivz9FQSAKyehnqLrAbWHfpiMtGHTZy2kaN5tm+imPvo2918F+LMG2EdtxLMjt fixxCzIHm32cUIFhxqb1IZfaDDe1tEzemTrTlQ/QS5Lm2Fw4+LXy3G3eOCx3Z+JwT+dch0A+BL8Z VoNOxtq123QXm/0l3QdE5y/DHl5efRG7AAAAAAAA --=-=-=-- ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <87czubeo4d.fsf-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>]
* Re: Mac 10.15 compiling using ghc [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> 0 siblings, 1 reply; 10+ messages in thread From: John MacFarlane @ 2021-04-30 19:03 UTC (permalink / raw) To: Uwe Brauer; +Cc: Uwe Brauer, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw You need a fairly recent cabal, at least 2 and maybe >= 2.4? I didn't know anyone used fink any more. brew will give you a recent cabal version. Or, you can use ghcup to get a recent ghc and cabal: https://www.haskell.org/ghcup/ Uwe Brauer <oub-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> writes: >>>> "JM" == John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > >> Actually, it's probably best to do > >> cabal install --lib pandoc-types --package-env . > > Thanks which cabal version fink provides 1.22.6 > > > https://www.haskell.org/cabal/download.html > > Provides a much higher version but only for High Sierra while I run > catalina. > > Any suggestions? > > Regards ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <m2y2cz389c.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>]
* Re: Mac 10.15 compiling using ghc [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 0 siblings, 2 replies; 10+ messages in thread From: John MacFarlane @ 2021-04-30 19:04 UTC (permalink / raw) To: Uwe Brauer; +Cc: Uwe Brauer, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw 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. John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > You need a fairly recent cabal, at least 2 and maybe >= 2.4? > > I didn't know anyone used fink any more. > brew will give you a recent cabal version. > > Or, you can use ghcup to get a recent ghc and cabal: > https://www.haskell.org/ghcup/ > > > Uwe Brauer <oub-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> writes: > >>>>> "JM" == John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: >> >>> Actually, it's probably best to do >> >>> cabal install --lib pandoc-types --package-env . >> >> Thanks which cabal version fink provides 1.22.6 >> >> >> https://www.haskell.org/cabal/download.html >> >> Provides a much higher version but only for High Sierra while I run >> catalina. >> >> Any suggestions? >> >> Regards ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mac 10.15 compiling using ghc 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 1 sibling, 0 replies; 10+ messages in thread From: Uwe Brauer @ 2021-05-01 11:11 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 1859 bytes --] >>> "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. Not sure my answer went through. I followed your advice and obtained ,---- | | I tried that but obtained | Text/Pandoc/Legacy/Definition.hs:103:14: parse error on input ‘{’ | cabal: Error: some packages failed to install: | pandoc-types-1.20 failed during the building phase. The exception was: | ExitFailure 1 `---- Then I tried cabal install cabal-install And obtained ,---- | cabal: Error: some packages failed to install: | Cabal-3.0.2.0 failed during the configure step. The exception was: | user error ('/opt/sw/bin/ghc' exited with an error: | | /var/folders/j1/7bbsk0jj6nxd5yxndqwvb1t00000gn/T/cabal-tmp-29800/Cabal-3.0.2.0/Distribution/Parsec.hs:134:7: | error: function-like macro 'MIN_VERSION_base' is not defined | #if !(MIN_VERSION_base(4,13,0)) | ^ | 1 error generated. | ) | cabal-install-3.0.0.0 depends on Cabal-3.0.2.0 which failed to install. | hackage-security-0.5.3.0 depends on Cabal-3.0.2.0 which failed to install. | `---- Sigh, I don't recall a time where this worked flawlessly. Andy advice would be welcome, I shall also ask on the fink mailing list. An alternative would be to un install fink's cabal pkg and try to install it directly. 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/m2h7jm675k.fsf%40mat.ucm.es. [-- Attachment #2: smime.p7s --] [-- Type: application/pkcs7-signature, Size: 5673 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* [some success] (was: Mac 10.15 compiling using ghc) 2021-04-30 19:04 ` John MacFarlane 2021-05-01 11:11 ` Uwe Brauer @ 2021-05-02 17:53 ` Uwe Brauer [not found] ` <m27dkhc9a5.fsf_-_-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> 1 sibling, 1 reply; 10+ messages in thread From: Uwe Brauer @ 2021-05-02 17:53 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw >>> "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. ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <m27dkhc9a5.fsf_-_-YB6e1s5WF/He5aOfsHch1g@public.gmane.org>]
* Re: [some success] (was: Mac 10.15 compiling using ghc) [not found] ` <m27dkhc9a5.fsf_-_-YB6e1s5WF/He5aOfsHch1g@public.gmane.org> @ 2021-05-02 20:33 ` John MacFarlane 2021-05-03 7:18 ` [some success] Uwe Brauer 0 siblings, 1 reply; 10+ messages in thread From: John MacFarlane @ 2021-05-02 20:33 UTC (permalink / raw) To: Uwe Brauer, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw 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. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [some success] 2021-05-02 20:33 ` John MacFarlane @ 2021-05-03 7:18 ` Uwe Brauer 0 siblings, 0 replies; 10+ messages in thread From: Uwe Brauer @ 2021-05-03 7:18 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 729 bytes --] >>> "JM" == John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> writes: > 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 #-} That worked, thanks very much, now I am back in business with pandoc. -- 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/87eeeo9tfa.fsf%40mat.ucm.es. [-- Attachment #2: smime.p7s --] [-- Type: application/pkcs7-signature, Size: 5673 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2021-05-03 7:18 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 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 2021-05-03 7:18 ` [some success] Uwe Brauer
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).