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:
parent
26d09ce631
commit
0c1cb118c4
@ -63,7 +63,7 @@ AC_DEFINE_UNQUOTED(LEADING_UNDERSCORE, $LEADING_UNDERSCORE,
|
|||||||
|
|
||||||
# Find pwd, in a cygwin friendly way.
|
# Find pwd, in a cygwin friendly way.
|
||||||
# Suggested by: http://www.haskell.org/ghc/docs/latest/html/users_guide/ch11s04.html
|
# 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_DEFINE_UNQUOTED(TOP, "$TOP", [Path to top of build tree])
|
||||||
AC_SUBST(TOP)
|
AC_SUBST(TOP)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user