rhiannon morris
20ecc02569
add Functor impl for Tokenizer ( #2901 )
2023-02-28 09:20:21 +00:00
Yupanqui
93b0f9c7b8
Fix for lexer colums
2022-09-05 13:47:41 -07:00
Steve Dunham
351b5ba720
[ parser ] Fix issue where Alt drops incoming commit tag
2022-09-05 12:44:02 +01:00
CodingCellist
36e38860b7
[ contrib ] Implement Show ParsingError
( #2407 )
2022-04-09 12:37:45 +01:00
teggot
d3aed0404c
[ fix #1959 ] use modern record update syntax ( #2196 )
2021-12-16 18:23:18 +00:00
Kamil Shakirov
ce67a2edd5
[ fix ] Re-add Pretty instances for IntX
2021-12-08 14:58:32 +00:00
Mathew Polzin
1576a578a0
[ cleanup ] Remove unused imports ( #2123 )
...
* contrib library unused import removal
* remove a few unused imports.
* another round of unused import removal
* another round of unused import deletion.
* another round of unused import deletion.
2021-11-18 16:47:36 +00:00
Denis Buzdalov
c340e0e713
[ cleanup ] Move left autos that are most likely to be passed explicitly
2021-10-25 13:17:03 +01:00
Mathew Polzin
f078d5f5dc
clean up some deprecations ( #2057 )
...
* deprecate Data.Nat.Order.decideLTE
* Add properties for LTE/GTE that produce the difference.
* remove deprecated function now that it is available in the base library.
* remove two deprecated lines.
* remove module deprecated since v0.4.0
* fix prelude reference to renamed primitive.
* finish removing Data.Num.Implementations
* remove deprecated dirEntry function.
* remove deprecated fastAppend. Update CHANGELOG.
* replace fastAppend in test case
* replace fastAppend uses in compiler.
* remove new properties that weren't actually very new.
2021-10-24 12:06:57 +01:00
Dr. ERDI Gergo
8b8ddfce5c
Add buildExpressionParser
, based on Parsec's implementation
2021-10-07 16:14:02 +01:00
G. Allais
1e0027721f
[ fix #1859 ] Undo my mistakes ( #1866 )
2021-08-27 16:18:24 +01:00
stefan-hoeck
1e8f9b3c36
[ fix ] export Show instance for Bounds
2021-08-15 08:49:19 +01:00
Alex Humphreys
f3855d7100
Update contrib Text.Parser to match Library.Text.Parser ( #1808 )
...
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
2021-08-06 10:03:13 +01:00
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
Mathew Polzin
89125e96dd
merge w/ upstream
2021-07-15 17:21:08 -07:00
John Mager
dc755e1df5
Pretty instances for IntX
2021-06-30 08:18:37 +01:00
Kamiλ Shakirov
8e30b296c0
[ refactor ] Remove Data.Strings module ( #1607 )
2021-06-28 13:48:37 +01:00
Denis Buzdalov
bf0985602f
[ totality ] More %default total
stuff
2021-06-12 21:06:08 -05:00
Mathew Polzin
5cb389769e
remove superfluous clause
2021-05-09 20:51:53 -07:00
Johann Rudloff
8d21a292d0
Add Text.PrettyPrint.Prettyprinter.Render.HTML to contrib as well
2021-04-29 13:49:04 +02:00
Johann Rudloff
489b85aae5
PrettyPrint: Fix SimpleDocTree.fromStream dropping parts of documents
...
When flattening the `SimpleDocTree` created from a `SimpleDocStream`, the
first part of a concatenated doc was sometimes dropped, depending on the
result of the recursive call to `flatten`.
2021-04-25 09:10:22 +01:00
Andy Lok
da92f9d676
Cleanup List1 ( #1091 )
2021-03-17 14:07:52 +00:00
G. Allais
d2eeb7ce86
[ fix #758 ] desugar non-binding sequencing in do blocks to (>>) ( #1095 )
2021-02-24 11:07:16 +00:00
Denis Buzdalov
b355b12cdb
Some cleanup was done. Changed code is mosly equivalent to the former.
...
A lot of useless matches of implicit arguments were removed.
2021-02-16 19:05:33 +00:00
Stefan Hoeck
fb08004041
removed trailing whitespace ( #955 )
2021-01-21 11:33:03 +00:00
Stiopa Koltsov
b76c9d91e0
Remove trailing whitespaces and add trailing newlines
2021-01-16 10:00:03 +00:00
Felix Springer
54d400dad4
Add countExactly
to Text.Parser in libs/contrib to return a Vect ( #875 )
2021-01-01 10:01:42 +00:00
G. Allais
3f6b99e979
[ fix #657 ] RigCount for interface parameters ( #808 )
2020-12-11 11:58:26 +00:00
Matus Tejiscak
f64163de1f
Merge branch 'unscheme' into master
2020-10-11 08:20:01 +02:00
G. Allais
4a61146ba0
[ fix #705 ] Normalise primitives in mkPat ( #718 )
...
[ log ] prettier log for pats & clauses
[ re #650 ] Even lazier
[ fix #705 ] normalise primitives in mkPat
[ refactor ] introduce getPrimitiveNames
2020-10-02 12:22:57 +01:00
Matus Tejiscak
5360adcc23
String-related stdlib tweaks.
2020-09-19 14:22:54 +02:00
Giuseppe Lomurno
df4f990b3c
PTerm and error intial prettyprinting
2020-08-18 19:25:36 +01:00
Giuseppe Lomurno
723457fd6c
Remove public export
2020-08-05 13:42:04 +02:00
Giuseppe Lomurno
c28133b7d9
Renamed IsString to FromString
...
- Renaming of the string overload interface
- Added test cases for both string and integer literals overload
2020-08-05 02:33:05 +02:00
Giuseppe Lomurno
b7ba5e88eb
Overloaded strings interface
...
As for integer literals, adds an interface for overloaded string
literals, and the implementation for the prettyprinter library in
contrib.
2020-08-05 02:00:05 +02:00
Giuseppe Lomurno
39f23ffd9b
Prec version of pretty interface
2020-07-24 15:19:17 +01:00
Giuseppe Lomurno
ab1f383912
Laziness annotations for performance
2020-07-24 15:19:17 +01:00
Giuseppe Lomurno
62524e8462
Tree representation for prettyprinting
2020-07-24 15:19:17 +01:00
Giuseppe Lomurno
3d51af46c2
Namespace change
2020-07-24 15:19:17 +01:00
Giuseppe Lomurno
eb659ba907
Added prettyprinting library
2020-07-24 15:19:17 +01:00
Mark Barbone
acda3b44a9
Make Text.Parser.between lazy ( #385 )
2020-07-14 14:33:22 +01:00
Alex Gryzlov
cd443f24f6
various stdlib updates
2020-06-11 23:14:11 +02:00
Edwin Brady
3f914889b8
Add visibility rules on types
...
Can't export a type which refers to a private name. This has caught a
couple of visibility errors in the libraries, code and tests, so they've
been updated too.
2020-05-30 17:03:15 +01:00
Edwin Brady
0958f1fd8b
Keep inlining %tcinlines under let
...
This fixes a productivity issue with map in the parser library
2020-05-22 17:52:20 +01:00
andylokandy
0d82b5d7da
Add System.Path
2020-05-20 22:51:01 +08:00
Edwin Brady
dec7dff622
Add libraries
2020-05-18 14:00:08 +01:00