I’ve been studying Haskell for a while, so I decided to check out some popular project to understand what it really looks like and possibly reconstruct the process.
I chose Hakyll because it does what I am familiar with and moderately complex. And then I immediately launched the question: how to return the import?
Say in JavaScript, every import is explicit.
let Q = require("Q") // namespace let {foo} = require("Q/foo") // value
Haskell defaults to
import Q
which spoils everything at once, and people seem to really abuse it.
Now I look at the tutorial , then at the source and I understand that I do not know where this or that function is located, and I do not know how to detect it except for the search.
Is there any trick to detect information such as making a syntax error that will open the source file or something else? How do you solve such problems in your workflow?
source share