Closed tomoyat1 closed 7 years ago
I needed to enable OverloadedStrings to make it work. Perhaps a line like
:set -XOverloadedStrings
before the first import would make the example more friendly to newcomers? (I'm quite new to the language)
Good idea. I always use OverloadedStrings in ghci, so I don't really think about it. I added it to make things clearer.
I get a type error for the two "strings" I pass to hmacEncode. Am I doing something wrong, or is the documentation old?