Daniel-Diaz / HaTeX

The Haskell LaTeX library.
BSD 3-Clause "New" or "Revised" License
199 stars 46 forks source link

Update transformers dependency #156

Closed ysangkok closed 2 years ago

ysangkok commented 2 years ago

It's currently bounded by < 0.6, but current Hackage version is transformers-0.6.0.4.

Daniel-Diaz commented 2 years ago

Does it build with it? It's not in stackage yet, which is where I get the package sets to test against.

ysangkok commented 2 years ago

Yep, it builds and the tests pass:

janus@gorm /tmp % cabal get HaTeX
Unpacking to HaTeX-3.22.3.1/
janus@gorm /tmp % cd HaTeX-3.22.3.1 
janus@gorm /tmp/HaTeX-3.22.3.1
 % cabal test --constraint='transformers>=0.6' --allow-newer=HaTeX:transformers
Resolving dependencies...
Build profile: -w ghc-9.4.1 -O1
In order, the following will be built (use -v for more details):
 - matrix-0.3.6.1 (lib) (requires build)
 - tasty-1.4.2.3 (lib) (requires build)
 - HaTeX-3.22.3.1 (lib) (first run)
 - tasty-quickcheck-0.10.2 (lib) (requires build)
 - HaTeX-3.22.3.1 (test:parser-tests) (first run)
 - HaTeX-3.22.3.1 (test:hatex-test) (first run)
Starting     matrix-0.3.6.1 (lib)
Starting     tasty-1.4.2.3 (lib)
Building     matrix-0.3.6.1 (lib)
Building     tasty-1.4.2.3 (lib)
Installing   tasty-1.4.2.3 (lib)
Completed    tasty-1.4.2.3 (lib)
Starting     tasty-quickcheck-0.10.2 (lib)
Building     tasty-quickcheck-0.10.2 (lib)
Installing   tasty-quickcheck-0.10.2 (lib)
Completed    tasty-quickcheck-0.10.2 (lib)
Installing   matrix-0.3.6.1 (lib)
Completed    matrix-0.3.6.1 (lib)
Warning: HaTeX.cabal:35:23: Packages with 'cabal-version: 1.12' or later
should specify a specific version of the Cabal spec of the form
'cabal-version: x.y'. Use 'cabal-version: 1.18'.
Configuring library for HaTeX-3.22.3.1..
Preprocessing library for HaTeX-3.22.3.1..
Building library for HaTeX-3.22.3.1..
[...]
Configuring test suite 'hatex-test' for HaTeX-3.22.3.1..
Preprocessing test suite 'parser-tests' for HaTeX-3.22.3.1..
Building test suite 'parser-tests' for HaTeX-3.22.3.1..
Preprocessing test suite 'hatex-test' for HaTeX-3.22.3.1..
Building test suite 'hatex-test' for HaTeX-3.22.3.1..
[1 of 2] Compiling Main             ( parsertest/parsertest.hs, /tmp/HaTeX-3.22.3.1/dist-newstyle/build/x86_64-linux/ghc-9.4.1/HaTeX-3.22.3.1/t/parser-tests/build/parser-tests/parser-tests-tmp/Main.o )
[1 of 2] Compiling Main             ( test/Main.hs, /tmp/HaTeX-3.22.3.1/dist-newstyle/build/x86_64-linux/ghc-9.4.1/HaTeX-3.22.3.1/t/hatex-test/build/hatex-test/hatex-test-tmp/Main.o )
[2 of 2] Linking /tmp/HaTeX-3.22.3.1/dist-newstyle/build/x86_64-linux/ghc-9.4.1/HaTeX-3.22.3.1/t/parser-tests/build/parser-tests/parser-tests
[2 of 2] Linking /tmp/HaTeX-3.22.3.1/dist-newstyle/build/x86_64-linux/ghc-9.4.1/HaTeX-3.22.3.1/t/hatex-test/build/hatex-test/hatex-test
Running 1 test suites...
Test suite parser-tests: RUNNING...
Test suite parser-tests: PASS
Test suite logged to:
/tmp/HaTeX-3.22.3.1/dist-newstyle/build/x86_64-linux/ghc-9.4.1/HaTeX-3.22.3.1/t/parser-tests/test/HaTeX-3.22.3.1-parser-tests.log
1 of 1 test suites (1 of 1 test cases) passed.
Running 1 test suites...
Test suite hatex-test: RUNNING...
Test suite hatex-test: PASS
Test suite logged to:
/tmp/HaTeX-3.22.3.1/dist-newstyle/build/x86_64-linux/ghc-9.4.1/HaTeX-3.22.3.1/t/hatex-test/test/HaTeX-3.22.3.1-hatex-test.log
1 of 1 test suites (1 of 1 test cases) passed.
Daniel-Diaz commented 2 years ago

Fixed by https://github.com/Daniel-Diaz/HaTeX/commit/5bdb4d522e4a6b3ae833e5030fc32746c3d3a474.

Daniel-Diaz commented 2 years ago

Thank you for testing it for me!