You can put the command :m + Note.Queryin a file with the name .ghci. If there is a file with a name in the current directory .ghci, it will be launched when GHCi is called. If there is no file in the current directory .ghci, but there is one in your home directory, it will be launched. This allows you to create files .ghcifor the project.
source
share