Idris2/libs/contrib/Text
Stepan Koltsov ce44d3b50a
Change semantics of lines and unlines function to match Haskell and other languages (#1585)
* Add trailing newline on non-empty list in unlines

There are several reasons to do that:
* a line in a text file is something which ends with newline,
  and the last line is not special
* `unlines []` should be different from `unlines [""]`
* `unlines (a ++ b) = unlines a ++ unlines b`
* Haskell does it

* Change lines function behaviour
2021-07-17 14:54:23 +01:00
..
Lexer [ refactor ] Remove Data.Strings module (#1607) 2021-06-28 13:48:37 +01:00
Parser [ fix #758 ] desugar non-binding sequencing in do blocks to (>>) (#1095) 2021-02-24 11:07:16 +00:00
PrettyPrint Change semantics of lines and unlines function to match Haskell and other languages (#1585) 2021-07-17 14:54:23 +01:00
Lexer.idr Some cleanup was done. Changed code is mosly equivalent to the former. 2021-02-16 19:05:33 +00:00
Parser.idr Cleanup List1 (#1091) 2021-03-17 14:07:52 +00:00
Quantity.idr Add libraries 2020-05-18 14:00:08 +01:00
Token.idr [ fix #657 ] RigCount for interface parameters (#808) 2020-12-11 11:58:26 +00:00