Added fix-whitespace.yaml and fixed whitespace.
This commit is contained in:
parent
a591bf8616
commit
f06137a621
15 changed files with 173 additions and 115 deletions
4
LICENSE
4
LICENSE
|
@ -33,7 +33,7 @@ exhaustive, and do not form part of our licenses.
|
|||
material not subject to the license. This includes other CC-
|
||||
licensed material, or material used under an exception or
|
||||
limitation to copyright. More considerations for licensors:
|
||||
wiki.creativecommons.org/Considerations_for_licensors
|
||||
wiki.creativecommons.org/Considerations_for_licensors
|
||||
|
||||
Considerations for the public: By using one of our public
|
||||
licenses, a licensor grants the public permission to use the
|
||||
|
@ -50,7 +50,7 @@ exhaustive, and do not form part of our licenses.
|
|||
Although not required by our licenses, you are encouraged to
|
||||
respect those requests where reasonable. More considerations
|
||||
for the public:
|
||||
wiki.creativecommons.org/Considerations_for_licensees
|
||||
wiki.creativecommons.org/Considerations_for_licensees
|
||||
|
||||
=======================================================================
|
||||
|
||||
|
|
12
Notes.md
12
Notes.md
|
@ -108,11 +108,11 @@ Three possible orders:
|
|||
+ (a) As current
|
||||
+ (b) Put Lists immediately after Induction.
|
||||
- requires moving composition & extensionality earlier
|
||||
- requires moving parameterised modules earlier for monoids
|
||||
- requires moving parameterised modules earlier for monoids
|
||||
- add material to relations:
|
||||
lexical ordering, subtype ordering, All, Any, All-++ iff
|
||||
lexical ordering, subtype ordering, All, Any, All-++ iff
|
||||
- add material to isomorphism: All-++ isomorphism
|
||||
- retain material on decidability of All, Any in Decidable
|
||||
- retain material on decidability of All, Any in Decidable
|
||||
+ (c) Put Lists after Decidable
|
||||
- requires moving Any-decidable from Decidable to Lists
|
||||
+ (d) As (b) but put parameterised modules in a separate chapter
|
||||
|
@ -188,9 +188,9 @@ Tradeoffs:
|
|||
+ defined break, make to extract a prefix
|
||||
and count primes at end of an id. But hard
|
||||
to do corresponding proofs. Need to figure out
|
||||
how to exploit abstraction to make terms readable.
|
||||
how to exploit abstraction to make terms readable.
|
||||
+ Conversion of raw to scoped and scoped to raw
|
||||
is easy if I use impossible
|
||||
is easy if I use impossible
|
||||
+ Added conversion of TypedDB to PHOAS in
|
||||
extra/DeBruijn-agda-list-4.lagda
|
||||
+ Next: try adding bidirectional typing to
|
||||
|
@ -228,7 +228,7 @@ The following comments were collected on the Agda mailing list.
|
|||
+ also cites Abel's habilitation
|
||||
- http://www.cse.chalmers.se/~abela/habil.pdf
|
||||
+ See his note to the Agda mailing list of 26 June,
|
||||
"Typed Jigger in vanilla Agda"
|
||||
"Typed Jigger in vanilla Agda"
|
||||
It points to the following solution.
|
||||
- https://github.com/effectfully/random-stuff/blob/master/TypedJigger.agda
|
||||
|
||||
|
|
83
README.md
83
README.md
|
@ -4,47 +4,13 @@ title: Getting Started
|
|||
permalink: /GettingStarted/
|
||||
---
|
||||
|
||||
<!-- Links -->
|
||||
|
||||
[epub]: https://plfa.github.io/out/epub/plfa.epub
|
||||
[plfa]: http://plfa.inf.ed.ac.uk
|
||||
[plfa-dev]: https://github.com/plfa/plfa.github.io/archive/dev.zip
|
||||
[plfa-status]: https://travis-ci.org/plfa/plfa.github.io.svg?branch=dev
|
||||
[plfa-travis]: https://travis-ci.org/plfa/plfa.github.io
|
||||
[plfa-calver]: https://img.shields.io/badge/calver-20.07-22bfda
|
||||
[plfa-latest]: https://github.com/plfa/plfa.github.io/releases/latest
|
||||
[plfa-master]: https://github.com/plfa/plfa.github.io/archive/master.zip
|
||||
|
||||
[agda]: https://github.com/agda/agda/releases/tag/v2.6.1
|
||||
[agda-version]: https://img.shields.io/badge/agda-v2.6.1-blue.svg
|
||||
[agda-docs-emacs-mode]: https://agda.readthedocs.io/en/v2.6.1/tools/emacs-mode.html
|
||||
[agda-docs-emacs-notation]: https://agda.readthedocs.io/en/v2.6.1/tools/emacs-mode.html#notation-for-key-combinations
|
||||
[agda-docs-package-system]: https://agda.readthedocs.io/en/v2.6.1/tools/package-system.html#example-using-the-standard-library
|
||||
|
||||
[agda-stdlib-version]: https://img.shields.io/badge/agda--stdlib-v1.3-blue.svg
|
||||
[agda-stdlib]: https://github.com/agda/agda-stdlib/releases/tag/v1.3
|
||||
|
||||
[haskell-stack]: https://docs.haskellstack.org/en/stable/README/
|
||||
[haskell-ghc]: https://www.haskell.org/ghc/
|
||||
|
||||
[mononoki]: https://madmalik.github.io/mononoki/
|
||||
|
||||
[ruby]: https://www.ruby-lang.org/en/documentation/installation/
|
||||
[ruby-bundler]: https://bundler.io/#getting-started
|
||||
[ruby-jekyll]: https://jekyllrb.com/
|
||||
[ruby-html-proofer]: https://github.com/gjtorikian/html-proofer
|
||||
|
||||
[kramdown]: https://kramdown.gettalong.org/syntax.html
|
||||
[pandoc]: https://pandoc.org/installing.html
|
||||
[epubcheck]: https://github.com/w3c/epubcheck
|
||||
|
||||
|
||||
<!-- Status & Version Badges -->
|
||||
[![Calendar Version][plfa-calver]][plfa-latest]
|
||||
[![Build Status][plfa-status]][plfa-travis]
|
||||
[![Agda][agda-version]][agda]
|
||||
[![agda-stdlib][agda-stdlib-version]][agda-stdlib]
|
||||
|
||||
|
||||
## Dependencies for users
|
||||
|
||||
You can read PLFA [online][plfa] without installing anything.
|
||||
|
@ -146,10 +112,10 @@ It is recommended that you install the font [mononoki][mononoki], and add the fo
|
|||
``` elisp
|
||||
;; default to mononoki
|
||||
(set-face-attribute 'default nil
|
||||
:family "mononoki"
|
||||
:height 120
|
||||
:weight 'normal
|
||||
:width 'normal)
|
||||
:family "mononoki"
|
||||
:height 120
|
||||
:weight 'normal
|
||||
:width 'normal)
|
||||
```
|
||||
|
||||
|
||||
|
@ -174,8 +140,7 @@ You'll see the key sequence of the character in mini buffer.
|
|||
|
||||
## Dependencies for developers
|
||||
|
||||
PLFA is available as both a website and an EPUB e-book,
|
||||
both of which can be built on Linux and macOS.
|
||||
PLFA is available as both a website and an EPUB e-book, both of which can be built on Linux and macOS.
|
||||
PLFA is written in literate Agda with [Kramdown Markdown][kramdown].
|
||||
|
||||
### Building the website
|
||||
|
@ -195,7 +160,7 @@ Most recent versions of [Ruby][ruby] should work. The easiest way to install [Je
|
|||
```bash
|
||||
gem install bundler
|
||||
```
|
||||
You can install the remainder of the dependencies---[Jekyll][ruby-jekyll], [html-proofer][ruby-html-proofer], *etc.*---by running:
|
||||
You can install the remainder of the dependencies—[Jekyll][ruby-jekyll], [html-proofer][ruby-html-proofer], *etc.*—by running:
|
||||
```bash
|
||||
bundle install
|
||||
```
|
||||
|
@ -234,3 +199,37 @@ Once you’ve installed Pandoc, you can build the EPUB by running:
|
|||
make epub
|
||||
```
|
||||
The EPUB is written to `out/epub/plfa.epub`.
|
||||
|
||||
<!-- Links -->
|
||||
|
||||
[epub]: https://plfa.github.io/out/epub/plfa.epub
|
||||
[plfa]: http://plfa.inf.ed.ac.uk
|
||||
[plfa-dev]: https://github.com/plfa/plfa.github.io/archive/dev.zip
|
||||
[plfa-status]: https://travis-ci.org/plfa/plfa.github.io.svg?branch=dev
|
||||
[plfa-travis]: https://travis-ci.org/plfa/plfa.github.io
|
||||
[plfa-calver]: https://img.shields.io/badge/calver-20.07-22bfda
|
||||
[plfa-latest]: https://github.com/plfa/plfa.github.io/releases/latest
|
||||
[plfa-master]: https://github.com/plfa/plfa.github.io/archive/master.zip
|
||||
|
||||
[agda]: https://github.com/agda/agda/releases/tag/v2.6.1
|
||||
[agda-version]: https://img.shields.io/badge/agda-v2.6.1-blue.svg
|
||||
[agda-docs-emacs-mode]: https://agda.readthedocs.io/en/v2.6.1/tools/emacs-mode.html
|
||||
[agda-docs-emacs-notation]: https://agda.readthedocs.io/en/v2.6.1/tools/emacs-mode.html#notation-for-key-combinations
|
||||
[agda-docs-package-system]: https://agda.readthedocs.io/en/v2.6.1/tools/package-system.html#example-using-the-standard-library
|
||||
|
||||
[agda-stdlib-version]: https://img.shields.io/badge/agda--stdlib-v1.3-blue.svg
|
||||
[agda-stdlib]: https://github.com/agda/agda-stdlib/releases/tag/v1.3
|
||||
|
||||
[haskell-stack]: https://docs.haskellstack.org/en/stable/README/
|
||||
[haskell-ghc]: https://www.haskell.org/ghc/
|
||||
|
||||
[mononoki]: https://madmalik.github.io/mononoki/
|
||||
|
||||
[ruby]: https://www.ruby-lang.org/en/documentation/installation/
|
||||
[ruby-bundler]: https://bundler.io/#getting-started
|
||||
[ruby-jekyll]: https://jekyllrb.com/
|
||||
[ruby-html-proofer]: https://github.com/gjtorikian/html-proofer
|
||||
|
||||
[kramdown]: https://kramdown.gettalong.org/syntax.html
|
||||
[pandoc]: https://pandoc.org/installing.html
|
||||
[epubcheck]: https://github.com/w3c/epubcheck
|
||||
|
|
60
fix-whitespace.yaml
Normal file
60
fix-whitespace.yaml
Normal file
|
@ -0,0 +1,60 @@
|
|||
# This file contains the project-specific settings for `fix-whitespace` a tiny
|
||||
# but useful tool to
|
||||
#
|
||||
# * Removes trailing whitespace.
|
||||
# * Removes trailing lines containing nothing but whitespace.
|
||||
# * Ensures that the file ends in a newline character.
|
||||
#
|
||||
# By default, fix-whitespace checks every directory under the current working
|
||||
# directory but no files. This program should be placed under a text-based
|
||||
# project.
|
||||
#
|
||||
# For directories,
|
||||
#
|
||||
# 1) excluded-dirs is a black-list of directories,
|
||||
# 2) included-dirs is a white-list of excluded-dirs
|
||||
#
|
||||
# For files,
|
||||
#
|
||||
# 3) included-files is a white-list of files,
|
||||
# 4) excluded-files is a black-list of included-files.
|
||||
#
|
||||
# The extended glob pattern can be used to specify file/direcotory names.
|
||||
# For details, see http://hackage.haskell.org/package/filemanip-0.3.6.3/docs/System-FilePath-GlobPattern.html
|
||||
#
|
||||
included-dirs:
|
||||
- "src"
|
||||
- "epub"
|
||||
- "_includes"
|
||||
- "_layouts"
|
||||
- "_posts"
|
||||
- "_sass"
|
||||
- "_assets"
|
||||
- "courses"
|
||||
- "papers"
|
||||
|
||||
excluded-dirs:
|
||||
- ".stack-work"
|
||||
- ".git"
|
||||
- "_build"
|
||||
- "_site"
|
||||
- "extra"
|
||||
- "tmp"
|
||||
|
||||
# Every matched filename is included unless it is matched by excluded-files.
|
||||
included-files:
|
||||
- "*.md"
|
||||
- "*.sh"
|
||||
- "*.html"
|
||||
- "*.yml"
|
||||
- "*.yaml"
|
||||
- "*.agda-lib"
|
||||
- "Gemfile"
|
||||
- "Guardfile"
|
||||
- "LICENSE"
|
||||
|
||||
excluded-files:
|
||||
- "*.sed"
|
||||
- ".DS_Store"
|
||||
- "Gemfile.lock"
|
||||
- "Makefile"
|
|
@ -4,17 +4,17 @@
|
|||
default : PLFA.pdf
|
||||
|
||||
PLFA.pdf : PLFA.tex PLFA.bib
|
||||
pdflatex PLFA
|
||||
bibtex PLFA
|
||||
pdflatex PLFA
|
||||
bibtex PLFA
|
||||
pdflatex PLFA
|
||||
pdflatex PLFA
|
||||
bibtex PLFA
|
||||
pdflatex PLFA
|
||||
bibtex PLFA
|
||||
pdflatex PLFA
|
||||
|
||||
final.zip : PLFA.tex PLFA.bib
|
||||
zip final.zip agda.sty llncs.cls PLFA.tex PLFA.bib splncsnat.bst figures/plfa-*.png figures/sf-*.png figures/raw.png figures/inherent.png
|
||||
zip final.zip agda.sty llncs.cls PLFA.tex PLFA.bib splncsnat.bst figures/plfa-*.png figures/sf-*.png figures/raw.png figures/inherent.png
|
||||
|
||||
clean:
|
||||
rm -f *.aux *.log *.out *.ptb *.blg *.fdb_latexmk *.agdai *.fls
|
||||
rm -f *.aux *.log *.out *.ptb *.blg *.fdb_latexmk *.agdai *.fls
|
||||
|
||||
realclean: clean
|
||||
rm -f *.glob *.vo *.bbl latex/* PLFA.pdf
|
||||
rm -f *.glob *.vo *.bbl latex/* PLFA.pdf
|
||||
|
|
|
@ -4,17 +4,17 @@
|
|||
default : PLFA.pdf
|
||||
|
||||
PLFA.pdf : PLFA.tex PLFA.bib
|
||||
pdflatex PLFA
|
||||
bibtex PLFA
|
||||
pdflatex PLFA
|
||||
bibtex PLFA
|
||||
pdflatex PLFA
|
||||
pdflatex PLFA
|
||||
bibtex PLFA
|
||||
pdflatex PLFA
|
||||
bibtex PLFA
|
||||
pdflatex PLFA
|
||||
|
||||
final.zip : PLFA.tex PLFA.bib
|
||||
zip final.zip agda.sty llncs.cls PLFA.tex PLFA.bib splncsnat.bst figures/plfa-*.png figures/sf-*.png figures/raw.png figures/inherent.png
|
||||
zip final.zip agda.sty llncs.cls PLFA.tex PLFA.bib splncsnat.bst figures/plfa-*.png figures/sf-*.png figures/raw.png figures/inherent.png
|
||||
|
||||
clean:
|
||||
rm -f *.aux *.log *.out *.ptb *.blg *.fdb_latexmk *.agdai *.fls
|
||||
rm -f *.aux *.log *.out *.ptb *.blg *.fdb_latexmk *.agdai *.fls
|
||||
|
||||
realclean: clean
|
||||
rm -f *.glob *.vo *.bbl latex/* PLFA.pdf
|
||||
rm -f *.glob *.vo *.bbl latex/* PLFA.pdf
|
||||
|
|
|
@ -4,4 +4,3 @@ layout : home
|
|||
permalink : /Announcements/
|
||||
---
|
||||
|
||||
|
||||
|
|
|
@ -15,13 +15,13 @@ permalink : /Citing/
|
|||
|
||||
### BibTeX
|
||||
|
||||
@Book{plfa2020,
|
||||
author = {Philip Wadler and Wen Kokke and Jeremy G. Siek},
|
||||
title = {Programming Language Foundations in {A}gda},
|
||||
note = {Available at \url{http://plfa.inf.ed.ac.uk/20.07/}},
|
||||
year = 2020,
|
||||
@Book{plfa2020,
|
||||
author = {Philip Wadler and Wen Kokke and Jeremy G. Siek},
|
||||
title = {Programming Language Foundations in {A}gda},
|
||||
note = {Available at \url{http://plfa.inf.ed.ac.uk/20.07/}},
|
||||
year = 2020,
|
||||
month = jul,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
## PLFA version 19.08
|
||||
|
@ -35,10 +35,10 @@ permalink : /Citing/
|
|||
|
||||
### BibTeX
|
||||
|
||||
@Book{plfa2019,
|
||||
author = {Philip Wadler and Wen Kokke},
|
||||
title = {Programming Language Foundations in {A}gda},
|
||||
note = {Available at \url{http://plfa.inf.ed.ac.uk/19.08/}},
|
||||
year = 2019,
|
||||
@Book{plfa2019,
|
||||
author = {Philip Wadler and Wen Kokke},
|
||||
title = {Programming Language Foundations in {A}gda},
|
||||
note = {Available at \url{http://plfa.inf.ed.ac.uk/19.08/}},
|
||||
year = 2019,
|
||||
month = aug,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,24 +10,24 @@
|
|||
# - Create JSON request.
|
||||
#
|
||||
body=$(cat .travis.yml \
|
||||
| yq w - script "echo 'Done'"\
|
||||
| yq d - before_deploy \
|
||||
| yq d - deploy \
|
||||
| yq p - config \
|
||||
| yq w - message "Build cache" \
|
||||
| yq w - branch dev \
|
||||
| yq w - merge_mode replace \
|
||||
| yq p - request -j)
|
||||
| yq w - script "echo 'Done'"\
|
||||
| yq d - before_deploy \
|
||||
| yq d - deploy \
|
||||
| yq p - config \
|
||||
| yq w - message "Build cache" \
|
||||
| yq w - branch dev \
|
||||
| yq w - merge_mode replace \
|
||||
| yq p - request -j)
|
||||
|
||||
# Send request to Travis.
|
||||
#
|
||||
resp=$(curl -s -X POST \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Accept: application/json" \
|
||||
-H "Travis-API-Version: 3" \
|
||||
-H "Authorization: token $TRAVIS_TOKEN" \
|
||||
-d "$body" \
|
||||
https://api.travis-ci.org/repo/plfa%2Fplfa.github.io/requests)
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Accept: application/json" \
|
||||
-H "Travis-API-Version: 3" \
|
||||
-H "Authorization: token $TRAVIS_TOKEN" \
|
||||
-d "$body" \
|
||||
https://api.travis-ci.org/repo/plfa%2Fplfa.github.io/requests)
|
||||
|
||||
# Output response.
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue