Copyright | (c) Kimiyuki Onaka 2021 |
---|---|
License | Apache License 2.0 |
Maintainer | kimiyuki95@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- run :: (MonadAlpha m, MonadError Error m) => Program -> m Program
Documentation
run :: (MonadAlpha m, MonadError Error m) => Program -> m Program Source #
run
converts xs = xs + [x]
and xs += [x]
to xs.append(x)
.
Examples
Before:
xs = xs + [x] xs += [x] xs.append(x)
After:
xs.append(x) xs.append(x) xs.append(x)