huangzworks / real-world-haskell-cn

《Real World Haskell》中文翻译项目
http://cnhaskell.com
1.56k stars 229 forks source link

exercise/ch3/exercise5.hs 有个Bug #151

Closed sio-funmatsu closed 6 years ago

sio-funmatsu commented 6 years ago

There is a bug in list of odd number.

Prelude> isPalindrome [1,2,1] *** Exception: Prelude.last: empty list

SnowOnion commented 6 years ago

这个 Bug 可以被目前唯一 open 的 PR https://github.com/huangz1990/real-world-haskell-cn/pull/150 所修复。黄老师不妨 merge 之。