Open epost opened 4 years ago
Stack build chokes on Could not find module ‘Data.Rewriting.CriticalPair’
.
term-rewriting
to packages.yaml
. (Was already there, though without version bounds).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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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.
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.
I managed to fix this, will clean up and make a PR soon.
#145#147Stack:Data.Rewriting
is missing, seems to need http://hackage.haskell.org/package/term-rewritingtryterm-rewriting >= 0.4.0.1
withlts-13.30
Petri.cql
cql examples/Petri.cql
) results in:On 7 December 2018, @marcosh said about this:
Schema.hs
would do a cyclic import ofInstance.hs
SchemaExp
needs to defineSchemaPivot
, which needsInstanceExp
, see hereaql
occurrences tocql
KB.cql
clahub
on the conversation page