diff options
author | Tom Smeding <tom@tomsmeding.com> | 2024-02-19 23:32:09 +0100 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2024-02-19 23:32:09 +0100 |
commit | b0c81ee7def783037b514af9fdeab06f7e3bdb13 (patch) | |
tree | 78e11274cc3b4779fe06b5f30c3d8426dc36202f /examples/test1.hs | |
parent | 91b62660cd522ce59ba1294eb2e6582e92f0a264 (diff) |
Show source line in parse error
Diffstat (limited to 'examples/test1.hs')
-rw-r--r-- | examples/test1.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/test1.hs b/examples/test1.hs index 2a3a834..ea09465 100644 --- a/examples/test1.hs +++ b/examples/test1.hs @@ -12,7 +12,7 @@ g y ding = ding f (y - 2) + 7 reverse :: [a] -> [a] reverse l = let go [] acc = acc - go (x:xs) acc go xs (x:acc) 7 -> - in go l [] + go (x:xs) acc = go xs (x:acc) + in (go l [] kaas = 42 |