mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-04 07:13:32 +03:00
8fd58b3bdd
Convert `App.Control.Exception` interface to an alias to `HasErr`. Probably `Exception` interface need to be deprecated or removed. Note similar problem exists with `PrimIO` calling `PrimIO, Exception`, also need to be fixed. Fix this scenario: ``` throwBoth : Has [Exception String, Exception Int] es => App es () throwOne : Has [Exception Int] es => App es Int throwOne {es} = handle {err = String} {e = es} throwBoth (\r => pure 1) (\e => pure 3) ``` With this commit it works, before this commit it failed with: ``` Error: While processing right hand side of throwOne. Can't find an implementation for Exception Int (String :: es). TestException.idr:8:48--8:57 | 8 | throwOne {es} = handle {err = String} {e = es} throwBoth (\r => pure 1) (\e => pure 3) | ^^^^^^^^^ ``` |
||
---|---|---|
.. | ||
control_app001 | ||
data_bits001 | ||
system_file001 | ||
system_info001 | ||
system_info_os001 | ||
system_signal001 | ||
system_signal002 | ||
system_signal003 | ||
system_signal004 | ||
system_system |