| Line | |
|---|
| 1 | {-# LANGUAGE NoMonomorphismRestriction #-} |
|---|
| 2 | |
|---|
| 3 | module Tests.BindTest where |
|---|
| 4 | |
|---|
| 5 | import Lambda |
|---|
| 6 | import SizedFun |
|---|
| 7 | import Exp |
|---|
| 8 | import Prelude ( ($), Int, (==), return, sequence, (>>=), and, (.), IO, Bool, String, const ) |
|---|
| 9 | import qualified Control.Monad |
|---|
| 10 | import qualified Tests.SizeTest as S |
|---|
| 11 | import qualified Tests.ExpTest as E |
|---|
| 12 | |
|---|
| 13 | addOne = bind "addone" S.testAddOne E.testAddOne |
|---|
| 14 | |
|---|
| 15 | concat = bind "concat" S.testConcat |
|---|
| 16 | (lam $ \l1 -> lam $ \l2 -> match l1 l2 $ \x xs -> cons x (concat `app` xs `app` l2)) |
|---|
Note: See
TracBrowser
for help on using the repository browser.