Closed jwaldmann closed 6 months ago
Thanks for report. Fixed this and uploaded new version to the hackage
Hi Anton. Thanks for working on this. I can build from source with ghc-9.8 (clone the repo, then cabal install all) but I cannot build from hackage:
$ cabal update
Downloading the latest package list from hackage.haskell.org
Package list of hackage.haskell.org has been updated.
The index-state is set to 2024-02-18T12:44:28Z.
...
$ cabal install --lib csound-expression --package-env=cse
...
Building library for csound-expression-typed-0.2.7..
[ 1 of 63] Compiling Csound.Typed.Constants ( src/Csound/Typed/Constants.hs, dist/build/Csound/Typed/Constants.o, dist/build/Csound/Typed/Constants.dyn_o )
[ 2 of 63] Compiling Csound.Typed.GlobalState.Cache ( src/Csound/Typed/GlobalState/Cache.hs, dist/build/Csound/Typed/GlobalState/Cache.o, dist/build/Csound/Typed/GlobalState/Cache.dyn_o )
[ 3 of 63] Compiling Csound.Typed.GlobalState.Opcodes ( src/Csound/Typed/GlobalState/Opcodes.hs, dist/build/Csound/Typed/GlobalState/Opcodes.o, dist/build/Csound/Typed/GlobalState/Opcodes.dyn_o )
src/Csound/Typed/GlobalState/Opcodes.hs:91:11: error: [GHC-83865]
• Couldn't match expected type ‘IfRate’ with actual type ‘Rate’
...
src/Csound/Typed/GlobalState/Opcodes.hs:92:9: error: [GHC-83865]
• Couldn't match type ‘()’ with ‘CodeBlock E’
Expected: DepT m (CodeBlock E)
Actual: DepT m ()
...
src/Csound/Typed/GlobalState/Opcodes.hs:129:21: error: [GHC-83865]
• Couldn't match type ‘[Char]’
with ‘text-2.1:Data.Text.Internal.Text’
Expected: Name
Actual: String
• In the first argument of ‘opcs’, namely ‘"sprintf"’
In the expression: opcs "sprintf" [(Sr, Sr : repeat Ir)] (a : as)
By some strange reason cabal does not apply extension OverloadedStrings on install. Although it is set in the cabal file.
cabal update
Will fix that. by some stranger reason revision over hackage site erased some extensions.