Ticket #1136: mkj.hs
| File mkj.hs, 446 bytes (added by igloo, 6 years ago) |
|---|
| Line | |
|---|---|
| 1 | |
| 2 | z = writeFile "/tmp/ian/J.hs" $ unlines j |
| 3 | |
| 4 | j = ["module J (a,b) where", |
| 5 | "(a,b) = let", |
| 6 | " a0 = ()", |
| 7 | " b0 = ()"] |
| 8 | ++ [" a" ++ show i ++ " = a" ++ show (i-1) | i <- [1..numa]] |
| 9 | ++ [" b" ++ show i ++ " = b" ++ show (i-1) | i <- [1..numb]] |
| 10 | ++ [" in ([a0" ++ concat [", a" ++ show i | i <- [1..numa]] ++ "]," |
| 11 | ++ "[b0" ++ concat [", b" ++ show i | i <- [1..numb]] ++ "])"] |
| 12 | |
| 13 | numa, numb :: Int |
| 14 | numa = 300 |
| 15 | numb = 10000 |
