1
1
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:
Brandon Chinn 2023-05-22 17:10:31 -07:00 committed by Mark Karpov
parent 17ae060c19
commit 01cb1e84e2
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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 ::