If it's a pretty simple hat pattern you could probably knit it flat and then seam it up the sides, it might take a little figuring since they assume that you're ALWAYS on a right side row and such, but it can probably be done. The best way to know is to try!!
If you don't already have a specific pattern chosen there ARE hats out there for straights, for example
Tychus hat at knitty.com