projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 2001-08-22 11:45:06 by sewardj]
[ghc-hetmet.git]
/
ghc
/
tests
/
deSugar
/
should_run
/
dsrun004.hs
1
-- Test n+k patterns
2
3
module Main where
4
5
f (n+1) = n
6
7
g :: Int -> Int
8
g (n+4) = n
9
10
main = print (f 3) >>
11
print (g 9)