Haskell : multiple declarations of “” …?

前端 未结 3 1776
慢半拍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:15

    Line 2 and line 3 have conflicting types: you've defined mirror to be the constant undefined, and then attempt to define it as a one-argument function. Removing line 2 should fix the problem; it's not clear why you wrote it in the first place.

提交回复
热议问题