Variable not in scope when using where clause and guard pattern matching

后端 未结 0 354
轮回少年
轮回少年 2021-01-05 04:57

Let\'s say I have this piece of code:

data Command = Forward Integer
             | Backwards Integer


doSomething givenCommand
 | Forward value <- givenC         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题