This commit is contained in:
krangelov
2019-08-30 08:12:52 +02:00
11 changed files with 26 additions and 67 deletions

2
.gitignore vendored
View File

@@ -44,6 +44,8 @@ cabal.sandbox.config
.stack-work
DATA_DIR
stack*.yaml.lock
# Generated documentation (not exhaustive)
demos/index-numbers.html
demos/resourcegrammars.html

View File

@@ -220,7 +220,7 @@ Minibar.prototype.get_pgf_info=function() {
Minibar.prototype.show_pgf_info=function(info) {
var t=this;
var cnt=0;
console.log(info)
//console.log(info)
info=info.split("\n");
for(var i=0;i<info.length;i++) {
if(info[i]=="") info[i]="<p>"
@@ -270,6 +270,12 @@ Minibar.prototype.show_grammarinfo=function() {
var info=empty("div")
if(t.pgf_info) info.innerHTML=t.pgf_info
if(true || /^\/(tmp|grammars)\//.test(server.grammars_url)) {
var q="?"+server.grammars_url+" "+server.current_grammar_url
var link=node("a",{href:q})
link.appendChild(text(link.href));
info.appendChild(wrap("p",[text("Link directly to this grammar: "),link]))
}
clear(t.translations.main)
var hdr=[text(g.name)]

View File

@@ -21,7 +21,7 @@ var minibar_options= {
try_google: true
}
if(/^\?\/tmp\//.test(location.search)) {
if(/^\?\/(tmp|grammars)\//.test(location.search)) {
var args=decodeURIComponent(location.search.substr(1)).split(" ")
if(args[0]) online_options.grammars_url=args[0];
if(args[1]) minibar_options.initial_grammar=args[1];

View File

@@ -1,11 +1 @@
resolver: lts-6.35 # ghc 7.10.3
packages:
- . # GF, PGF
- src/runtime/haskell-bind # PGF2 (requires C runtime to be installed)
extra-deps:
flags:
gf:
server: true

View File

@@ -1,11 +1 @@
resolver: lts-9.21 # ghc 8.0.2
packages:
- . # GF, PGF
- src/runtime/haskell-bind # PGF2 (requires C runtime to be installed)
extra-deps:
flags:
gf:
server: true

View File

@@ -1,14 +1,6 @@
resolver: lts-11.22 # ghc 8.2.2
packages:
- . # GF, PGF
- src/runtime/haskell-bind # PGF2 (requires C runtime to be installed)
extra-deps:
- cgi-3001.3.0.2
- cgi-3001.3.0.3
- httpd-shed-0.4.0.3
- time-1.6.0.1 # cgi-3001.3.0.2: time-1.8.0.2 from stack configuration does not match >=1.5 && <1.7
flags:
gf:
server: true
- exceptions-0.10.2

View File

@@ -1,12 +0,0 @@
resolver: lts-12.14 # ghc 8.4.3
packages:
- . # GF, PGF
- src/runtime/haskell-bind # PGF2 (requires C runtime to be installed)
extra-deps:
- cgi-3001.3.0.3
flags:
gf:
server: true

4
stack-ghc8.4.4.yaml Normal file
View File

@@ -0,0 +1,4 @@
resolver: lts-12.26 # ghc 8.4.4
extra-deps:
- cgi-3001.3.0.3

View File

@@ -1,13 +0,0 @@
resolver: nightly-2018-12-04 # ghc 8.6.2
packages:
- . # GF, PGF
- src/runtime/haskell-bind # PGF2 (requires C runtime to be installed)
extra-deps:
- json-0.9.2
- network-2.6.3.6
flags:
gf:
server: true

5
stack-ghc8.6.5.yaml Normal file
View File

@@ -0,0 +1,5 @@
resolver: lts-14.3 # ghc 8.6.5
extra-deps:
- network-2.6.3.6
- httpd-shed-0.4.0.3

View File

@@ -1,14 +1,9 @@
# This default stack file is a copy of stack-ghc8.2.2.yaml
# But committing a symlink is probably a bad idea, so it's a real copy
resolver: lts-11.22 # ghc 8.2.2
packages:
- . # GF, PGF
- src/runtime/haskell-bind # PGF2 (requires C runtime to be installed)
extra-deps:
- cgi-3001.3.0.2
- cgi-3001.3.0.3
- httpd-shed-0.4.0.3
- time-1.6.0.1 # cgi-3001.3.0.2: time-1.8.0.2 from stack configuration does not match >=1.5 && <1.7
flags:
gf:
server: true
- exceptions-0.10.2