diff options
Diffstat (limited to 'libraries/base/Control/Exception/Base.hs')
-rw-r--r-- | libraries/base/Control/Exception/Base.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libraries/base/Control/Exception/Base.hs b/libraries/base/Control/Exception/Base.hs index b609ef2095..351771bf4e 100644 --- a/libraries/base/Control/Exception/Base.hs +++ b/libraries/base/Control/Exception/Base.hs @@ -361,7 +361,9 @@ instance Exception NoMethodError -- |An expression that didn't typecheck during compile time was called. -- This is only possible with -fdefer-type-errors. The @String@ gives -- details about the failed type check. -data TypeError = TypeError String +-- +-- @since 4.9.0.0 +newtype TypeError = TypeError String instance Show TypeError where showsPrec _ (TypeError err) = showString err |