From 8a06c083fab9c66e754c7ed5a75dd4d89131c43e Mon Sep 17 00:00:00 2001 From: Jacques Comeaux Date: Sun, 29 May 2022 16:07:59 -0500 Subject: Improve error reporting --- src/Tomato/Data/Except.hs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/Tomato/Data/Except.hs (limited to 'src/Tomato/Data/Except.hs') diff --git a/src/Tomato/Data/Except.hs b/src/Tomato/Data/Except.hs new file mode 100644 index 0000000..30212cf --- /dev/null +++ b/src/Tomato/Data/Except.hs @@ -0,0 +1,9 @@ +module Tomato.Data.Except + ( DecodeException (..) + ) where + +import RIO + +data DecodeException = DecodeException !Text + deriving (Show, Typeable) +instance Exception DecodeException -- cgit v1.2.3