Two improvements in the pgf-shell example

1. Like pgf-translate, it now shows one result at a time, press Enter to get
   more results.
2. You can load a new grammar with the command 'i <path-to-pgf>'
This commit is contained in:
hallgren
2014-05-07 16:37:28 +00:00
parent b7478a8252
commit 7c88b7935f
3 changed files with 52 additions and 33 deletions

View File

@@ -261,7 +261,7 @@ executable pgf-shell
buildable: False
main-is: pgf-shell.hs
hs-source-dirs: src/runtime/haskell-bind/examples
build-depends: gf, base, containers
build-depends: gf, base, containers, mtl, lifted-base
default-language: Haskell2010
if impl(ghc>=7.0)
ghc-options: -rtsopts