Safe Haskell | Safe |
---|---|

Language | Haskell98 |

# Documentation

subsumesT :: Ord n => EnvT n -> Kind n -> Type n -> Type n -> Bool Source #

Check whether the first type subsumes the second.

Both arguments are converted to sums, and we check that every element of the second sum is equivalent to an element in the first.

This only works for well formed types of effect and closure kind.
Other types will yield `False`

.