patch configure.ac to use System.Directory.getCurrentDirectory
Also generate configure from configure.ac
This fixes the error,
<interactive>:2:1:
Failed to load interface for `Directory'
It is a member of the hidden package `haskell98-2.0.0.1'.
Use -v to see a list of the files searched for.
We could also try adding the -package haskell98 flag, but that gives:
Top level:
Ambiguous interface for `Prelude':
it was found in multiple packages: base haskell98-2.0.0.1
This commit is contained in:
@ -63,7 +63,7 @@ AC_DEFINE_UNQUOTED(LEADING_UNDERSCORE, $LEADING_UNDERSCORE,
|
||||
|
||||
# Find pwd, in a cygwin friendly way.
|
||||
# Suggested by: http://www.haskell.org/ghc/docs/latest/html/users_guide/ch11s04.html
|
||||
TOP=`echo "Directory.getCurrentDirectory >>= putStrLn.init.tail.show " | ghc --interactive -ignore-dot-ghci -v0 | tr -d '\r'`
|
||||
TOP=`echo "System.Directory.getCurrentDirectory >>= putStrLn.init.tail.show " | ghc --interactive -ignore-dot-ghci -v0 | tr -d '\r'`
|
||||
|
||||
AC_DEFINE_UNQUOTED(TOP, "$TOP", [Path to top of build tree])
|
||||
AC_SUBST(TOP)
|
||||
|
||||
Reference in New Issue
Block a user