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 27fc5e5b04
commit 04e7bdb6fe
3 changed files with 52 additions and 33 deletions

View File

@@ -22,7 +22,9 @@ library
build-depends: base >=4.3, bytestring >=0.9,
containers
-- hs-source-dirs:
default-language: Haskell2010
build-tools: hsc2hs
extra-libraries: gu pgf
cc-options: -std=c99
default-language: Haskell2010
@@ -30,7 +32,7 @@ library
executable pgf-shell
main-is: pgf-shell.hs
hs-source-dirs: examples
build-depends: base, pgf2-bind, containers
build-depends: base, pgf2-bind, containers, mtl, lifted-base
default-language: Haskell2010
if impl(ghc>=7.0)
ghc-options: -rtsopts