• Justus Sagemüller's avatar
    Escape html control characters in error messages. · a5e317f1
    Justus Sagemüller authored
    Error messages are usually rendered surprisingly clean even without escaping, but in a few cases it went wrong quite badly, in particular the `<<loop>>` error would get rendered as the completely cryptic `<>`.
    
    Also, something like `"one string&quot; &quot;another string" 4` used to give the error message
    
    ```
    The function ‘"one string" "another string"’ is applied to one argument,
    but its type ‘String’ has none
    ```
    
    This kind of behavior is prevented by escaping the characters `<`, `>` and `&` to `&lt;`, `&gt;` and `&amp;`, respectively.
    a5e317f1
Name
Last commit
Last update
demo Loading commit data...
ghc-parser Loading commit data...
html Loading commit data...
ihaskell-display Loading commit data...
images Loading commit data...
ipython-kernel Loading commit data...
main Loading commit data...
notebooks Loading commit data...
src Loading commit data...
.dockerignore Loading commit data...
.ghci Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
Dockerfile Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
Setup.hs Loading commit data...
build.sh Loading commit data...
ihaskell.cabal Loading commit data...
macos-install.sh Loading commit data...
root-deps.sh Loading commit data...
stack.yaml Loading commit data...
ubuntu-install.sh Loading commit data...
verify_formatting.py Loading commit data...