Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module implements the desugaring pass which replaces top-level binders with case expressions.
Synopsis
- desugarCases :: forall m. (MonadSupply m, MonadError MultipleErrors m) => [Declaration] -> m [Declaration]
- desugarCasesModule :: (MonadSupply m, MonadError MultipleErrors m) => Module -> m Module
- desugarCaseGuards :: forall m. (MonadSupply m, MonadError MultipleErrors m) => [Declaration] -> m [Declaration]
Documentation
desugarCases :: forall m. (MonadSupply m, MonadError MultipleErrors m) => [Declaration] -> m [Declaration] Source #
Replace all top-level binders with case expressions.
desugarCasesModule :: (MonadSupply m, MonadError MultipleErrors m) => Module -> m Module Source #
Replace all top-level binders in a module with case expressions.
desugarCaseGuards :: forall m. (MonadSupply m, MonadError MultipleErrors m) => [Declaration] -> m [Declaration] Source #