forked from GitHub/gf-core
Replace Distribution.Simple.Utils.noticeNoWrap with putStr
Effect is the same and I don't want to upset the package dependencies
This commit is contained in:
@@ -6,8 +6,7 @@ import System.Process(rawSystem)
|
|||||||
import System.Exit(ExitCode(..))
|
import System.Exit(ExitCode(..))
|
||||||
import Distribution.Simple.Setup(BuildFlags(..),Flag(..),CopyDest(..),copyDest)
|
import Distribution.Simple.Setup(BuildFlags(..),Flag(..),CopyDest(..),copyDest)
|
||||||
import Distribution.Simple.LocalBuildInfo(datadir,buildDir,absoluteInstallDirs)
|
import Distribution.Simple.LocalBuildInfo(datadir,buildDir,absoluteInstallDirs)
|
||||||
import Distribution.Simple.Utils(die,noticeNoWrap)
|
import Distribution.Simple.Utils(die)
|
||||||
import qualified Distribution.Verbosity
|
|
||||||
|
|
||||||
{-
|
{-
|
||||||
To test the GF web services, the minibar and the grammar editor, use
|
To test the GF web services, the minibar and the grammar editor, use
|
||||||
@@ -52,7 +51,7 @@ buildWeb gf (flags,pkg,lbi) = do
|
|||||||
contrib_exists <- doesDirectoryExist contrib_dir
|
contrib_exists <- doesDirectoryExist contrib_dir
|
||||||
if contrib_exists
|
if contrib_exists
|
||||||
then mapM_ build_pgf example_grammars
|
then mapM_ build_pgf example_grammars
|
||||||
else noticeNoWrap Distribution.Verbosity.normal $ unlines
|
else putStr $ unlines
|
||||||
[ "---"
|
[ "---"
|
||||||
, "Example grammars are no longer included in the main GF repository, but have moved to gf-contrib."
|
, "Example grammars are no longer included in the main GF repository, but have moved to gf-contrib."
|
||||||
, "If you want these example grammars to be built, clone this repository in the same top-level directory as GF:"
|
, "If you want these example grammars to be built, clone this repository in the same top-level directory as GF:"
|
||||||
|
|||||||
Reference in New Issue
Block a user