I'm getting the following error from GHCI when I run my Haskell program:
"Pattern match(es) are non-exhaustive
In an equation for `recaList': Patterns not matched: (_:_:_)"
I've been searching the web/SO, but can't seem to find an explanation for what (_:_:_)
is. My guess would be just an empty list, but I've accounted for that in my function.
Not sure if it's relevant, but here's my program:
recaList :: [Int] -> [Int]
recaList [] = []
recaList [x] = map recaMan [x]
I think the issue is just that I have no idea what (_:_:_)
is.