Curry compiler zinc cannot be customized

when I set the curry compiler cynicism, I get the following:

checking for Haskell 98 compiler... checking for ghc... ghc checking ghc version... 7.0 checking whether ghc supports Haskell 98... [1 of 1] Compiling Main ( conftest.hs, conftest.o ) yes using ghc for compilation checking how to import IOExts... configure: error: import of IOExts does not work 

so what are IOExts? where can i find it?

+4
source share
1 answer

It pushes daisies what it is. The old library module, which existed about five years ago, can be found in the documentation for older releases of GHC . I assume that the code you are trying to compile is of a similar age.

Assuming that somewhere there is no updated version of zinc, your options are roughly:

  • Use the antique version of GHC to create it.
  • Update the code yourself to import all the modules whose contents are in IOExts .
  • Create a mock-IOExts module that relays the necessary materials.

Assuming there are no other problems, the third is probably the easiest, like a quick hack. There is a fair chance that you will encounter more compatibility issues than just this one, however, so grabbing a copy of GHC 6.4 might be the easiest overall, especially if you are not comfortable dumping the source code.

+3
source

Source: https://habr.com/ru/post/1387784/


All Articles