Skip to content

Commit

Permalink
WIP3
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed Jan 4, 2025
1 parent 417159c commit b01df08
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 49 deletions.
84 changes: 42 additions & 42 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,13 @@ jobs:
run: |
touch cabal.project
echo "packages: $GITHUB_WORKSPACE/source/optics" >> cabal.project
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "packages: $GITHUB_WORKSPACE/source/optics-core" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "packages: $GITHUB_WORKSPACE/source/optics-extra" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "packages: $GITHUB_WORKSPACE/source/optics-sop" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "packages: $GITHUB_WORKSPACE/source/optics-th" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "packages: $GITHUB_WORKSPACE/source/optics-vl" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "packages: $GITHUB_WORKSPACE/source/indexed-profunctors" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "packages: $GITHUB_WORKSPACE/source/metametapost" >> cabal.project ; fi
echo "packages: $GITHUB_WORKSPACE/source/optics-core" >> cabal.project
echo "packages: $GITHUB_WORKSPACE/source/optics-extra" >> cabal.project
echo "packages: $GITHUB_WORKSPACE/source/optics-sop" >> cabal.project
echo "packages: $GITHUB_WORKSPACE/source/optics-th" >> cabal.project
echo "packages: $GITHUB_WORKSPACE/source/optics-vl" >> cabal.project
echo "packages: $GITHUB_WORKSPACE/source/indexed-profunctors" >> cabal.project
echo "packages: $GITHUB_WORKSPACE/source/metametapost" >> cabal.project
cat cabal.project
- name: sdist
run: |
Expand Down Expand Up @@ -242,29 +242,29 @@ jobs:
touch cabal.project
touch cabal.project.local
echo "packages: ${PKGDIR_optics}" >> cabal.project
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "packages: ${PKGDIR_optics_core}" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "packages: ${PKGDIR_optics_extra}" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "packages: ${PKGDIR_optics_sop}" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "packages: ${PKGDIR_optics_th}" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "packages: ${PKGDIR_optics_vl}" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "packages: ${PKGDIR_indexed_profunctors}" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "packages: ${PKGDIR_metametapost}" >> cabal.project ; fi
echo "packages: ${PKGDIR_optics_core}" >> cabal.project
echo "packages: ${PKGDIR_optics_extra}" >> cabal.project
echo "packages: ${PKGDIR_optics_sop}" >> cabal.project
echo "packages: ${PKGDIR_optics_th}" >> cabal.project
echo "packages: ${PKGDIR_optics_vl}" >> cabal.project
echo "packages: ${PKGDIR_indexed_profunctors}" >> cabal.project
echo "packages: ${PKGDIR_metametapost}" >> cabal.project
echo "package optics" >> cabal.project
echo " ghc-options: -Werror=missing-methods" >> cabal.project
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "package optics-core" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "package optics-extra" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "package optics-sop" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "package optics-th" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "package optics-vl" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "package indexed-profunctors" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo "package metametapost" >> cabal.project ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
echo "package optics-core" >> cabal.project
echo " ghc-options: -Werror=missing-methods" >> cabal.project
echo "package optics-extra" >> cabal.project
echo " ghc-options: -Werror=missing-methods" >> cabal.project
echo "package optics-sop" >> cabal.project
echo " ghc-options: -Werror=missing-methods" >> cabal.project
echo "package optics-th" >> cabal.project
echo " ghc-options: -Werror=missing-methods" >> cabal.project
echo "package optics-vl" >> cabal.project
echo " ghc-options: -Werror=missing-methods" >> cabal.project
echo "package indexed-profunctors" >> cabal.project
echo " ghc-options: -Werror=missing-methods" >> cabal.project
echo "package metametapost" >> cabal.project
echo " ghc-options: -Werror=missing-methods" >> cabal.project
cat >> cabal.project <<EOF
EOF
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(indexed-profunctors|metametapost|optics|optics-core|optics-extra|optics-sop|optics-th|optics-vl)$/; }' >> cabal.project.local
Expand Down Expand Up @@ -313,20 +313,20 @@ jobs:
run: |
cd ${PKGDIR_optics} || false
${CABAL} -vnormal check
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then cd ${PKGDIR_optics_core} || false ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then ${CABAL} -vnormal check ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then cd ${PKGDIR_optics_extra} || false ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then ${CABAL} -vnormal check ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then cd ${PKGDIR_optics_sop} || false ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then ${CABAL} -vnormal check ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then cd ${PKGDIR_optics_th} || false ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then ${CABAL} -vnormal check ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then cd ${PKGDIR_optics_vl} || false ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then ${CABAL} -vnormal check ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then cd ${PKGDIR_indexed_profunctors} || false ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then ${CABAL} -vnormal check ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then cd ${PKGDIR_metametapost} || false ; fi
if [ $((GHCJSARITH || ! GHCJSARITH && HCNUMVER < 91200)) -ne 0 ] ; then ${CABAL} -vnormal check ; fi
cd ${PKGDIR_optics_core} || false
${CABAL} -vnormal check
cd ${PKGDIR_optics_extra} || false
${CABAL} -vnormal check
cd ${PKGDIR_optics_sop} || false
${CABAL} -vnormal check
cd ${PKGDIR_optics_th} || false
${CABAL} -vnormal check
cd ${PKGDIR_optics_vl} || false
${CABAL} -vnormal check
cd ${PKGDIR_indexed_profunctors} || false
${CABAL} -vnormal check
cd ${PKGDIR_metametapost} || false
${CABAL} -vnormal check
- name: haddock
run: |
if [ $((! GHCJSARITH)) -ne 0 ] ; then $CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all ; fi
Expand Down
2 changes: 1 addition & 1 deletion indexed-profunctors/indexed-profunctors.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ maintainer: [email protected]
author: Adam Gundry, Andres Löh, Andrzej Rybczak, Oleg Grenrus
tested-with: GHC ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7
|| ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.5 || ==9.8.2
|| ==9.10.1,
|| ==9.10.1 || ==9.12.1,
GHCJS ==8.4
synopsis: Utilities for indexed profunctors
category: Data, Optics, Lenses, Profunctors
Expand Down
2 changes: 1 addition & 1 deletion metametapost/metametapost.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license-file: LICENSE
build-type: Simple
tested-with: GHC ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7
|| ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.5 || ==9.8.2
|| ==9.10.1,
|| ==9.10.1 || ==9.12.1,
GHCJS ==8.4
maintainer: [email protected]
synopsis: Generate optics documentation diagrams
Expand Down
2 changes: 1 addition & 1 deletion optics-core/optics-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ maintainer: [email protected]
author: Adam Gundry, Andres Löh, Andrzej Rybczak, Oleg Grenrus
tested-with: GHC ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7
|| ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.5 || ==9.8.2
|| ==9.10.1,
|| ==9.10.1 || ==9.12.1,
GHCJS ==8.4
synopsis: Optics as an abstract interface: core definitions
category: Data, Optics, Lenses
Expand Down
2 changes: 1 addition & 1 deletion optics-extra/optics-extra.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ maintainer: [email protected]
author: Andrzej Rybczak
tested-with: GHC ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7
|| ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.5 || ==9.8.2
|| ==9.10.1,
|| ==9.10.1 || ==9.12.1,
GHCJS ==8.4
synopsis: Extra utilities and instances for optics-core
category: Data, Optics, Lenses
Expand Down
2 changes: 1 addition & 1 deletion optics-sop/optics-sop.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ maintainer: [email protected]
author: Adam Gundry, Andres Löh, Andrzej Rybczak
tested-with: GHC ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7
|| ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.5 || ==9.8.2
|| ==9.10.1,
|| ==9.10.1 || ==9.12.1,
GHCJS ==8.4
synopsis: Optics for generics-sop, and using generics-sop
category: Data, Optics, Lenses, Generics
Expand Down
2 changes: 1 addition & 1 deletion optics-th/optics-th.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ maintainer: [email protected]
author: Andrzej Rybczak
tested-with: GHC ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7
|| ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.5 || ==9.8.2
|| ==9.10.1,
|| ==9.10.1 || ==9.12.1,
GHCJS ==8.4
synopsis: Optics construction using TemplateHaskell
category: Data, Optics, Lenses
Expand Down
2 changes: 1 addition & 1 deletion optics-vl/optics-vl.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ maintainer: [email protected]
author: Andrzej Rybczak
tested-with: GHC ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7
|| ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.5 || ==9.8.2
|| ==9.10.1,
|| ==9.10.1 || ==9.12.1,
GHCJS ==8.4
synopsis: Utilities for compatibility with van Laarhoven optics
category: Data, Optics, Lenses
Expand Down

0 comments on commit b01df08

Please sign in to comment.