Taking drugs whilst fasting could be dangerous. A sleeping pill is a prescription drug. Also your stomach is in a fragile/sensitive state whilst fasting, so when you think about it, probably not a good idea.
I wanted to take an animo acid supplement, which i like to take for anxiety, which is a powder in a capsule, but was told no. I am wondering if it is okay to take this during the refeeding period though. As it is sort of food.