mirror of
https://github.com/tweag/ormolu.git
synced 2024-10-26 15:35:11 +03:00
Pretty print exception in displayException
This commit is contained in:
parent
17ae060c19
commit
01cb1e84e2
@ -4,6 +4,9 @@
|
||||
not mentioned in an existing cabal file. [Issue
|
||||
1032](https://github.com/tweag/ormolu/issues/1032)
|
||||
|
||||
* Update `displayException` for `OrmoluException` to pretty print the
|
||||
exception. [PR 1031](https://github.com/tweag/ormolu/pull/1031).
|
||||
|
||||
## Ormolu 0.7.0.0
|
||||
|
||||
* Inference of operator fixity information is now more precise and takes
|
||||
|
@ -47,7 +47,8 @@ data OrmoluException
|
||||
OrmoluFixityOverridesParseError (ParseErrorBundle Text Void)
|
||||
deriving (Show)
|
||||
|
||||
instance Exception OrmoluException
|
||||
instance Exception OrmoluException where
|
||||
displayException = T.unpack . runTermPure . printOrmoluException
|
||||
|
||||
-- | Print an 'OrmoluException'.
|
||||
printOrmoluException ::
|
||||
|
Loading…
Reference in New Issue
Block a user