packages feed

MicroHs-0.17.4.0 / tests / Guard.hs

module Guard(main) wheref :: [Int] -> Intf [x] | x < 0 = - x      | x < 10 = x+1      | otherwise = 99f [x,y] = x+yf xs | l < 4 = 0     | otherwise = l   where { l = length xs }main :: IO ()main = do  print [f [- 7], f [5], f [20], f [2,3], f [1,2,3], f[1,2,3,4]]