statebox / cql

CQL: Categorical Query Language implementation in Haskell
GNU Affero General Public License v3.0
162 stars 15 forks source link

Add 'pivot' functionality #146

Open epost opened 4 years ago

epost commented 4 years ago
epost commented 4 years ago

problem

Stack build chokes on Could not find module ‘Data.Rewriting.CriticalPair’.

solution steps

reproduce

Type stack build and note the following to an appropriate level of dismay:

    /Users/erik/dev/statebox/cql-master/src/Language/Prover.hs:44:1: error:
        Could not find module ‘Data.Rewriting.CriticalPair’
        There are files missing in the ‘term-rewriting-0.2.1.1’ package,
        try running 'ghc-pkg check'.
        Use -v to see a list of the files searched for.
       |
    44 | import           Data.Rewriting.CriticalPair as CP
       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    /Users/erik/dev/statebox/cql-master/src/Language/Prover.hs:45:1: error:
        Could not find module ‘Data.Rewriting.Rule’
        There are files missing in the ‘term-rewriting-0.2.1.1’ package,
        try running 'ghc-pkg check'.
        Use -v to see a list of the files searched for.
       |
    45 | import           Data.Rewriting.Rule         as R
       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    /Users/erik/dev/statebox/cql-master/src/Language/Prover.hs:46:1: error:
        Could not find module ‘Data.Rewriting.Rules’
        There are files missing in the ‘term-rewriting-0.2.1.1’ package,
        try running 'ghc-pkg check'.
        Use -v to see a list of the files searched for.
       |
    46 | import           Data.Rewriting.Rules        as Rs
       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    /Users/erik/dev/statebox/cql-master/src/Language/Prover.hs:47:1: error:
        Could not find module ‘Data.Rewriting.Term’
        There are files missing in the ‘term-rewriting-0.2.1.1’ package,
        try running 'ghc-pkg check'.
        Use -v to see a list of the files searched for.
       |
    47 | import           Data.Rewriting.Term         as T
       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
wisnesky commented 4 years ago

This may be file Data.Rewriting.CriticalPair.Type in rewriting-0.4.x.y. It looks like there are other API changes as well.

On Jul 31, 2019, at 11:13 AM, Erik Post notifications@github.com wrote:

problem

Stack build chokes on Could not find module ‘Data.Rewriting.CriticalPair’.

reproduce

Type stack build and note the following to an appropriate level of dismay:

/Users/erik/dev/statebox/cql-master/src/Language/Prover.hs:44:1: error:
    Could not find module ‘Data.Rewriting.CriticalPair’
    There are files missing in the ‘term-rewriting-0.2.1.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
44 | import           Data.Rewriting.CriticalPair as CP
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/Users/erik/dev/statebox/cql-master/src/Language/Prover.hs:45:1: error:
    Could not find module ‘Data.Rewriting.Rule’
    There are files missing in the ‘term-rewriting-0.2.1.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
45 | import           Data.Rewriting.Rule         as R
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/Users/erik/dev/statebox/cql-master/src/Language/Prover.hs:46:1: error:
    Could not find module ‘Data.Rewriting.Rules’
    There are files missing in the ‘term-rewriting-0.2.1.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
46 | import           Data.Rewriting.Rules        as Rs
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/Users/erik/dev/statebox/cql-master/src/Language/Prover.hs:47:1: error:
    Could not find module ‘Data.Rewriting.Term’
    There are files missing in the ‘term-rewriting-0.2.1.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
47 | import           Data.Rewriting.Term         as T
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

epost commented 4 years ago

Oh hey @wisnesky! :) Thanks for the feedback, I was just trying to convince stack to try the latest 4.x, although I couldn't find any API changes at first sight. Anyway, let me press on with that then; Stack didn't seem cooperative in depending on a 4.x so far.

epost commented 4 years ago

I managed to fix this, will clean up and make a PR soon.