【发布时间】:2019-10-21 13:10:09
【问题描述】:
所以我得到了错误:
error:
parse error on input `|'
| x == 'a' = True
代码本身是:
module SubstitutionCiphers where
import AssignmentHelp.Cipher
validateCipher :: Cipher -> Boolean
validateCipher "" = False
validateCipher (x:xs)
| x == 'a' = True
| otherwise = validateCipher xs
我尝试以各种不同的方式交替缩进,但似乎没有任何效果。我想这仍然是一个缩进问题,但我不知道如何解决它。
【问题讨论】:
-
请不要在签名下缩进。
标签: haskell