Um, based on the phrasing of your question, I'm going to answer something that you might already know. You don't program the pot or the encoder, but rather use them as inputs for your program. I'm an electrical guy, so all I can tell you is that you should connect your pot to the analog ports on the roboRIO and the hall effect sensor to the DIO ports (I think, never used those particular hall effect sensors before).
If you already knew that, and just want to know how to reference the values provided by those, then good luck! Hopefully someone else can help you out.
Also, if you can specify what language you're using, people will be better able to help you.