Missteps of a Narwhal Calf

  • 1

Definitely go with the types!

I too am just learning Haskell. Definitely write the types in for functions, otherwise you end up with the wrong types being inferred and functions not compiling with indecipherable messages. If you put the right types in first of all, you can't go too far wrong!

Re: Definitely go with the types!

Good point! I was re-reading Chapter 5 of RWH and they were talking about exactly this issue.

It's a facepalm moment once something compiles just because you add a type signature...
(Frozen) (Parent) (Thread)

  • 1

Log in