summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci.debugger/scripts/T19157.hs
blob: d844a31e7e1a19794586a29f7dc4af3b41b9cbd8 (plain)
1
2
3
4
5
6
7
8
module T19157 where

mySum :: [Int] -> Int
mySum lst = go 0 lst
  where
    go :: Int -> [Int] -> Int
    go sum [] = sum
    go sum (s : ss) = go (sum + s) ss