So i am trying to make a recursive factorial function using the case expression and if else although I don't know how to write the <0 condition for my code
factorial x = case of x
<0 -> -1
0 -> 0
.
.
.
I am completely new to Haskell so please don't be too harsh on me.