Idris2/libs/contrib/System
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
..
Console Change semantics of lines and unlines function to match Haskell and other languages (#1585) 2021-07-17 14:54:23 +01:00
Directory [ refactor ] Remove Data.Strings module (#1607) 2021-06-28 13:48:37 +01:00
Future.idr Overhaul of concurrency primitives (#968) 2021-02-05 16:16:20 +00:00
Path.idr Cut unneeded type specifications 2021-06-28 16:22:27 +01:00
Random.idr Add Data.Bits to base (#1033) 2021-03-04 20:59:56 +00:00