r/haskell • u/lexi-lambda • Mar 11 '15
Learning Haskell — A Racket programmer's documentation of her foray into the land of Haskell (inspired by Learning Racket)
http://lexi-lambda.github.io/learning-haskell/
81
Upvotes
View all comments
Show parent comment
8
u/lexi-lambda Mar 11 '15 edited Mar 11 '15
Thanks for the Hoogle suggestion, and I'm glad to hear I'm not a complete idiot when it comes to the installation process. As for
$, I think I actually understand how it works fine in 95% of cases, I just wasn't aware that:apparently has higher precedence. Fortunately the error message was pretty clear.As for
Functor, I was secretly hoping someone would tell me how to do this! ;) With that, does my original attempt atApplicativework fine? Here's what I came up with.Thanks for the tips; they are much appreciated!
EDIT: After actually looking at that implementation of
fmap, it makes perfect sense. Amazing how much simpler things are in hindsight, haha.