juselius / spiderman

Convert Lmod JSON to HTML, RST or MetaDoc XML
Other
3 stars 1 forks source link

With what stack did this compile? #1

Closed simonLeary42 closed 1 year ago

simonLeary42 commented 1 year ago

I'm trying to build this but I keep getting the following error:

$ cabal update
Downloading the latest package list from hackage.haskell.org 
$ cabal install
cabal: internal error when reading package index: failed to parse .cabal
fileThe package index or index cache is probably corrupt. Running cabal update
might fix it.

I tried ubuntu 14.04, 16.04, 18.04, and then with 20.04 it stopped making that error. Then it got a bunch of compiler errors due to type checking. spiderman.cabal doesn't specify versions on any of its dependencies so I'm assuming cabal installed the latest packages which are no longer compatible.

On what OS did this compile? Using what version of Haskell?

juselius commented 1 year ago

Hi @simonleary-umass-edu! I'm afraid I can't help you much. I wrote that code over 10 years ago, and I have not touched it since. IIRC stackage was not around at that time, and dependency management in Haskell was a bit YOLO. For the past 8 years I have mostly been working with F#, and my Haskell and PureScript skills are not very up to date.

simonLeary42 commented 1 year ago

OK, I understand. Thanks for the quick reply

simonLeary42 commented 1 year ago

I got it installed with the following list of packages:

click to expand ``` /opt/ghc/7.6.3/lib/ghc-7.6.3/package.conf.d Cabal-1.16.0 Cabal-1.20.0.4 Cabal-2.0.1.1 HStringTemplate-0.8.8 HTTP-4000.2.23 aeson-0.7.0.4 array-0.4.0.1 asn1-encoding-0.9.5 asn1-parse-0.9.5 asn1-types-0.3.4 async-2.2.4 attoparsec-0.11.3.1 base-4.6.0.1 base-orphans-0.9.0 base64-bytestring-1.0.0.3 bin-package-db-0.0.0.0 binary-0.5.1.1 blaze-builder-0.3.3.4 blaze-html-0.7.1.0 blaze-markup-0.6.3.0 byteable-0.1.1 bytestring-0.10.0.2 bytestring-builder-0.10.8.2.0 case-insensitive-1.2.1.0 cereal-0.5.8.3 cmdargs-0.10.22 conduit-1.2.13.1 connection-0.2.8 containers-0.5.0.0 cookie-0.4.3 cryptonite-0.24 data-default-0.5.3 data-default-class-0.1.2.0 data-default-instances-base-0.1.0.1 data-default-instances-containers-0.0.1 data-default-instances-dlist-0.0.1 data-default-instances-old-locale-0.0.1 deepseq-1.3.0.1 deepseq-generics-0.1.1.2 digest-0.0.1.7 directory-1.2.0.1 directory-1.2.7.1 dlist-1.0 exceptions-0.10.7 extensible-exceptions-0.1.1.4 fail-4.9.0.0 filepath-1.3.0.1 foundation-0.0.8 generic-deriving-1.14.4 ghc-7.6.3 ghc-prim-0.3.0.0 hashable-1.2.7.0 haskell2010-1.1.1.0 haskell98-2.0.0.2 highlighting-kate-0.5.15 hoopl-3.9.0.0 hourglass-0.2.12 hpc-0.6.0.0 hslua-0.3.13 http-client-0.4.31.2 http-client-tls-0.2.4.1 http-conduit-2.1.9 http-types-0.8.6 integer-gmp-0.5.0.0 lifted-base-0.2.3.12 memory-0.14.8 mime-types-0.1.0.9 mmorph-1.2.0 monad-control-1.0.3.1 mtl-2.2.2 nats-1.1.2 network-2.5.0.0 old-locale-1.0.0.5 old-time-1.1.0.1 pandoc-1.12.4.2 pandoc-types-1.12.4.7 parsec-3.1.15.0 pem-0.2.3 pretty-1.1.1.0 primitive-0.6.1.1 process-1.1.0.2 process-1.2.3.0 random-1.0.1.1 regex-base-0.93.2 regex-pcre-builtin-0.94.5.8.8.35 regex-posix-0.95.2 resourcet-1.1.11 rts-1.0 scientific-0.2.0.2 semigroups-0.20 socks-0.5.6 spiderman-1.0.0.0 stm-2.5.1.0 streaming-commons-0.1.18 syb-0.4.4 tagged-0.8.7 tagsoup-0.13.10 template-haskell-2.8.0.0 temporary-1.2.1.1 texmath-0.6.6.1 text-1.1.1.4 th-abstraction-0.5.0.0 time-1.4.0.1 time-1.4.2 tls-1.3.9 transformers-0.5.6.2 transformers-base-0.4.6 transformers-compat-0.6.6 unix-2.6.0.1 unix-2.7.2.2 unliftio-core-0.1.2.0 unordered-containers-0.2.8.0 utf8-string-1.0.2 vector-0.10.12.3 void-0.7.3 x509-1.6.5 x509-store-1.6.3 x509-system-1.6.7 x509-validation-1.6.8 xml-1.3.14 xmlgen-0.6.2.2 yaml-0.8.27 zip-archive-0.2.3.7 zlib-0.5.4.2 ```
juselius commented 1 year ago

Excellent! Thank you!