I'm a Haskell newcomer and have Haskell installed on my (Mac) machine; I'm trying to use newsynth (https://www.mathstat.dal.ca/~selinger/newsynth/, http://hackage.haskell.org/package/newsynth). In my terminal in the same place where I installed Haskell (home directory) I ran the command cabal install newsynth
as suggested by the package authors. However, I can't figure out how to actually access anything from the package from the command line, let alone within a particular file.
In GHCi Prelude, I tried running commands of the form import Quantum
and import Quantum.Synthesis.Diophantine
but always get an error message. (e.g. in contrast, import Data.Complex
works just fine.)
(I'm sure I'm missing something pretty obvious, but I only began with Haskell on Monday, and need to spin up some newsynth code by next week, which is why I'm not starting from the ground up.) Any advice on (1) how to run newsynth's functions from GHCi and (2) how to incorporate them into .hs files would be greatly appreciated. Thanks!
Edit: cabal --version
returns
cabal-install version 3.2.0.0
(newline) compiled using version 3.2.0.0 of the Cabal library
cabal --version
tell you? - duplodecabal-install version 3.2.0.0
(newline)compiled using version 3.2.0.0 of the Cabal library
- zjs