Guillaume Maudoux
59698de718
Handle errors located in raw strings
2020-11-18 09:42:06 +01:00
Anton-Latukha
003dcb660b
clean-up: m upd: minor tweaks, dropped functor
2020-09-21 01:58:00 +03:00
Simon Jakobi
1a2d627a58
Use prettyprinter-1.7.0
...
Changelog:
http://hackage.haskell.org/package/prettyprinter-1.7.0/changelog
hnix is likely to be affected by this change:
> Use floor instead of round to compute ribbon width.
…due to its use of custom `LayoutOptions`.
2020-08-07 12:21:12 +03:00
Simon Jakobi
f0532b86f6
Silence redundant import warnings for Control.Monad.Fail ( #633 )
...
Also address mysterious redundant import warnings in the testsuite
This allows us to enable `buildStrictly=true` for GHC 8.8.
Fixes #613 .
2020-06-19 02:21:06 +02:00
quasicomputational
37c2bb25da
Adapt to MonadFail changes in GHC 8.8.
...
Note that this is an enforced public API change.
I went with changing the `MonadFile` typeclass rather than threading
through a `MonadFail` at every use-site, but that would be possible as
well if it makes more semantic sense - however, since `MonadFile`
already seems to require an IO-ish implementation, adding that
superclass doesn't seem like an imposition.
2019-10-02 08:04:17 +01:00
Anton-Latukha
dda464a8ec
Render: LANGUAGE: rm TypeApplications
2019-08-04 09:14:41 -07:00
John Wiegley
94e0be3882
Reformat all sources with Brittany, to restore consistency
2019-03-17 14:47:38 -07:00
John Wiegley
5884b3ab11
Correct to source position rendering
2019-03-10 14:12:40 -07:00
John Wiegley
602b71c173
Render source line locations more attractively
2019-03-10 11:15:28 -07:00
John Wiegley
624ec11234
Begin adding very basic source line printing
2019-03-03 14:48:49 -08:00
John Wiegley
3216a7f4ce
Create a stand-in function for pretty source location info
2019-01-08 11:00:09 -08:00
Domen Kožar
48fe67748b
Fix warnings
2018-11-25 10:08:17 +00:00
Vaibhav Sagar
017ce7667a
Bump Megaparsec to 7.0.4
2018-11-22 01:16:11 -05:00
John Ericson
f227911ce0
Merge remote-tracking branch 'origin/master' into prettyprinter
2018-11-20 18:23:15 -05:00
John Ericson
04abd357bd
Switch to prettyprinter
2018-11-17 12:02:26 -05:00
Ryan Trinkle
2884c4f918
Factor out filesystem functionality into MonadFile
2018-11-16 15:16:17 -05:00
John Wiegley
ce3b0d70e9
Move all of the parsing code into a single module, for optimization
2018-05-07 12:06:56 -07:00
John Wiegley
e68a94b955
Remove some commented out code
2018-04-28 06:57:46 -07:00
John Wiegley
ecdb798560
Show the position when an assertion fails
2018-04-27 16:36:24 -07:00
John Wiegley
05ca87a732
Several improvements to error reporting; add new --thunks option
2018-04-25 13:00:41 -07:00
John Wiegley
9864a8c7a5
Rework the way that info frames and error are handled
...
There is still work to be done to render the new "typed frames", and to
convert all the current string based frame into typed frames. This will pave
the way forward to smarter error messages that can be browsed in intelligent
environments like Emacs and the browser.
2018-04-24 02:15:28 -07:00