Haskell : multiple declarations of “” …?

前端 未结 3 1805
慢半拍i
慢半拍i 2021-01-22 07:49

Hey guys so here is my code on which I get the weird error of \"Multiple Declarations of mirror\". I have other functions before that but none of them are named mirror... Any id

3条回答
  •  耶瑟儿~
    2021-01-22 08:35

    You have conflicting definitions for mirror. The first clause,

    mirror = undefined
    

    is a catch-all, so the definition is considered finished by the compiler. The next clause is then considered to start a new definition. You should remove the undefined line.

提交回复
热议问题