Agda-stdlib: Error after running `fix-agda-whitespace`

Created on 30 Mar 2020  Â·  3Comments  Â·  Source: agda/agda-stdlib

After running fix-agda-whitespace, I got the error:

$ make test
...
agda +RTS -M3.5G -H3.5G -A128M -RTS -i. -isrc README.agda
 Checking README.Text.Tabular (/some-path/README/Text/Tabular.agda).
/some-path/README/Text/Tabular.agda:106,5-9
"foo bar\n  1 2  \n  4 3  " != "foo bar\n  1 2\n  4 3  " of type
String
when checking that the expression refl has type
unlines (Tabularᵛ.display whitespace (Right ∷ Left ∷ []) foobar) ≡
"foo bar\n  1 2\n  4 3  "
invalid

All 3 comments

The error was because I used fix-agda-whitespace instead of fix-whitespace.

See the HACKING.md file.

We are now using fix-whitespace and explicitly whitelisting a bunch of files
that have whitespace because they contain code with meaningful whitespace
generated by Text.Tabular

I included the *.md to be tested.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JacquesCarette picture JacquesCarette  Â·  7Comments

masaeedu picture masaeedu  Â·  5Comments

gallais picture gallais  Â·  8Comments

uzytkownik picture uzytkownik  Â·  5Comments

andreasabel picture andreasabel  Â·  6Comments